Add sanitizeJsonSchema() function to fix common schema issues: - Replaces invalid type 'None' (common in Python tools) with 'object' - Ensures all schemas have a valid type field - Recursively sanitizes nested schemas in properties, items, anyOf/oneOf/allOf - Prevents OpenAI API errors from malformed tool schemas This fixes the error with @superagent-ai/ai-sdk guard tool which returns type: 'None' instead of a valid JSON Schema type. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| playground | ||
| railway-executor | ||
| web | ||