assistant-ui icon indicating copy to clipboard operation
assistant-ui copied to clipboard

Module '"assistant-stream"' is not framework agnostic

Open upwindchange opened this issue 1 year ago • 1 comments

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.

upwindchange avatar Nov 30 '25 21:11 upwindchange

this is not a priority at the moment, but we'd be happy to review and merge a pr for this

AVGVSTVS96 avatar Jan 20 '26 21:01 AVGVSTVS96