mirror of
https://github.com/meta-llama/llama-stack.git
synced 2025-12-22 18:46:16 +00:00
Signed-off-by: Francisco Javier Arceo <farceo@redhat.com> fixing package.json Signed-off-by: Francisco Javier Arceo <farceo@redhat.com> moving ui -> chat Signed-off-by: Francisco Javier Arceo <farceo@redhat.com>
28 lines
623 B
TypeScript
28 lines
623 B
TypeScript
import {
|
|
MessageBlock,
|
|
ToolCallBlock,
|
|
} from "@/components/chat/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>}
|
|
/>
|
|
);
|
|
}
|