@cloudflare/codemode@0.5.4
Cloudflare's @cloudflare/codemode package was updated to version 0.5.4, improving tool schema resolution and output type reflection.
原始内容为英文;当前页面提供中文导航与来源说明,具体事实请以原文为准。
为什么值得关注
@cloudflare/codemode@0.5.4 introduces patch changes focused on tool schema handling. ToolSetConnector now includes the outputSchema of AI SDK tools within connector descriptors, allowing codemode.describe() to display specific output types rather than unknown . Asynchronous schema conversions ( jsonSchema(promise) ) for inputs and outputs are now awaited instead of dropped. Additionally, output types in generateTypes and connector descriptors now accurately reflect the value returned by a tool rather than its schema's input side. Specific schema behaviors are also updated: .default() fields are treated as required, .pipe() fields reflect the piped type, and .transform() fields surface as unknown due to JSON Schema limitations.
可执行摘要
Version 0.5.4 of @cloudflare/codemode updates ToolSetConnector to forward AI SDK tool outputSchema into connector descriptors, awaits asynchronous schema conversions, and refines output types for tools using .default() , .pipe() , and .transform() .
- Agent 实用度
- 77/100
- 可信度
- 96%
- 机器格式
- JSON + Markdown
开发者应核对什么
- Update @cloudflare/codemode to version 0.5.4.
- Verify tool definitions using .transform() , .pipe() , .default() , or async schemas against the updated type generation and connector descriptions.