Patch Changes
-
#2472
7945da9Thanks @mattzcarey! -ToolSetConnectornow forwards each AI SDK tool'soutputSchemainto its connector descriptors, so durablecodemode.describe()shows the output type instead ofunknown, asMcpConnectoralready does. Input and output schemas that convert asynchronously (jsonSchema(promise)) are now awaited instead of being dropped.Output types, in both
generateTypesand connector descriptors, now describe the value a tool returns rather than the input side of its schema. A.default()field is now required and a.pipe()field has the piped type. A.transform(), which JSON Schema can't express, shows asunknowninstead of the pre-transform type.