The fastest, litest AI Gateway. Rust core with Python SDK. Call 100+ LLM APIs in OpenAI (or native) format with cost tracking, guardrails, load balancing, and logging [Bedrock, Azure, OpenAI, Anthropic, OpenAI, VertexAI, vLLM, Nvidia NIM]
Python ai-gatewayanthropicazure-openaibedrockgatewaylangchainlitellmllmllm-gatewayllmopsmcp-gatewayopenaiopenai-proxyrustrust-aivertex-ai
/**
* SimpleToolCallBlock - Simple tool call display without copy button
* Used in compact/tree views
*/
import { cn } from "@/lib/cva.config";
import { ToolCall } from "./prettyMessagesTypes";
interface SimpleToolCallBlockProps {
tool: ToolCall;
compact?: boolean;
}
export function SimpleToolCallBlock({ tool, compact = false }: SimpleToolCallBlockProps) {
return (
<div
className={cn(
"relative mt-2 rounded-md border border-border bg-muted font-mono text-xs",
compact ? "px-2.5 py-1.5" : "px-3.5 py-2.5",
)}
>
{/* Function badge */}
<div className="absolute -top-2 left-3 rounded-[3px] border border-border bg-background px-1.5 text-[10px] text-muted-foreground">
function
</div>
<span className="mb-1.5 block text-[13px] font-semibold">{tool.name}</span>
{Object.keys(tool.arguments).length > 0 && (
<div>
{Object.entries(tool.arguments).map(([key, value]) => (
<div key={key} className="mb-0.5">
<span className="text-xs text-muted-foreground">{key}: </span>
<span className="text-xs">{JSON.stringify(value)}</span>
</div>
))}
</div>
)}
</div>
);
}