Patch Changes
- 077ceb3: Fix tool schemas rejected by OpenAI and Anthropic when a parameter uses
anyOf,oneOf,allOf,$ref, or similar keywords. The converted schema is aZodObjectagain, so the LangChain, Vercel, LlamaIndex, and Claude Agent SDK providers send tool parameters with a top-leveltype: "object". Patterns with escapes such as\_or\:no longer fail every call to the tool. - d9f6291: Tool schema
patternandpatternPropertiesregexes now run on a linear-time engine (RE2, viare2js), so a hostile pattern such as^(a+)+$can no longer hang argument validation. Apatternthat needs lookaround still runs on the native engine when a static check shows it cannot backtrack catastrophically, on input up to 1000 characters; otherwise it is left unenforced. ApatternPropertieskey that needs lookaround or a backreference now fails conversion with anInvalidPatternError(reasonunsupported). Patterns now match astral characters (emoji) as single characters, as JSON Schema's Unicode regex dialect does.