806 B
806 B
@effect/ai-anthropic
| @effect/ai-anthropic |
|---|
| patch |
Fix client-executed provider tools (Memory, Text Editor, Computer Use, Bash) which were unusable on the wire.
makeResponse(and the streaming equivalents) now map a providertool_usewire name (e.g."memory") back to the tool's custom name (e.g."AnthropicMemory") that the toolkit is keyed by, instead of raisingToolNotFoundError.AnthropicTool.MemoryCreateCommandnow includes the requiredfile_textfield, so acreatecommand no longer drops the file body.- Optional parameters on client-executed provider tools now use
Schema.optionalKeyinstead ofSchema.optional, which the Anthropic codec rejected with "Unsupported AST Undefined":Memory/TextEditorview_range,ComputerUsecoordinate, andBashrestart.
Closes #2615.