+ {text} +
+ ); + }, + }; +}; + +function addCitations(text) { + return text.replaceAll(CITATION_MATCH, (match) => { + const number = match.match(/\d+/)[0]; + return `${match}(${number})`; + }); +} + +export function ToolCall({ tool_args, tool_name, tool_result }) { + if (tool_name === "run_search") { + return ( +