llama-stack-mirror/llama_stack/ui/components/responses/items/web-search-item.tsx
Eric Huang de53390c1c responses table, responses details
# What does this PR do?


## Test Plan
# What does this PR do?


## Test Plan
2025-05-27 21:23:11 -07:00

28 lines
621 B
TypeScript

import {
MessageBlock,
ToolCallBlock,
} from "@/components/ui/message-components";
import { WebSearchCallItem } from "../utils/item-types";
interface WebSearchItemProps {
item: WebSearchCallItem;
index: number;
keyPrefix: string;
}
export function WebSearchItemComponent({
item,
index,
keyPrefix,
}: WebSearchItemProps) {
const formattedWebSearch = `web_search_call(status: ${item.status})`;
return (
<MessageBlock
key={`${keyPrefix}-${index}`}
label="Function Call"
labelDetail="(Web Search)"
content={<ToolCallBlock>{formattedWebSearch}</ToolCallBlock>}
/>
);
}