assistant-ui
assistant-ui copied to clipboard
Module '"assistant-stream"' is not framework agnostic
This tool use seems to bound to ai sdk?
const toAISDKTools = (tools: Record<string, Tool>) => {
return Object.fromEntries(
Object.entries(tools).map(([name, tool]) => [
name,
{
...(tool.description ? { description: tool.description } : undefined),
parameters: (tool.parameters instanceof z.ZodType
? z.toJSONSchema(tool.parameters)
: tool.parameters) as JSONSchema7,
},
]),
);
};
also, the implementation uses depreciated toLanguageModelMessages converter.
this is not a priority at the moment, but we'd be happy to review and merge a pr for this