-
Notifications
You must be signed in to change notification settings - Fork 177
feat: add strict schema support for tool definitions #815
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
- Add 'strict' parameter to zodSchemaToJsonSchema function (default: true) - Implement ensureStrictJsonSchema helper based on OpenAI's implementation - Update toJsonSchema and oaiParams functions to support strict mode - Set strict: true by default to match Python version behavior - Fixes livekit#805 - enable strict JSON schema validation for tool definitions This brings parity with the Python implementation and OpenAI's function calling standards
|
- Add 'strict' parameter to zodSchemaToJsonSchema function (default: true) - Implement ensureStrictJsonSchema helper based on OpenAI's implementation - Update toJsonSchema and oaiParams functions to support strict mode - Set strict: true by default to match Python version behavior - Fixes livekit#805 - enable strict JSON schema validation for tool definitions This brings parity with the Python implementation and OpenAI's function calling standards
- Add 'strict' parameter to zodSchemaToJsonSchema function (default: true) - Implement ensureStrictJsonSchema helper based on OpenAI's implementation - Update toJsonSchema and oaiParams functions to support strict mode - Set strict: true by default to match Python version behavior - Fixes livekit#805 - enable strict JSON schema validation for tool definitions This brings parity with the Python implementation and OpenAI's function calling standards
- Add 'strict' parameter to zodSchemaToJsonSchema function (default: true) - Implement ensureStrictJsonSchema helper based on OpenAI's implementation - Update toJsonSchema and oaiParams functions to support strict mode - Set strict: true by default to match Python version behavior - Fixes livekit#805 - enable strict JSON schema validation for tool definitions This brings parity with the Python implementation and OpenAI's function calling standards
- Add 'strict' parameter to zodSchemaToJsonSchema function (default: true) - Implement ensureStrictJsonSchema helper based on OpenAI's implementation - Update toJsonSchema and oaiParams functions to support strict mode - Set strict: true by default to match Python version behavior - Fixes livekit#805 - enable strict JSON schema validation for tool definitions This brings parity with the Python implementation and OpenAI's function calling standards
- Add 'strict' parameter to zodSchemaToJsonSchema function (default: true) - Implement ensureStrictJsonSchema helper based on OpenAI's implementation - Update toJsonSchema and oaiParams functions to support strict mode - Set strict: true by default to match Python version behavior - Fixes livekit#805 - enable strict JSON schema validation for tool definitions This brings parity with the Python implementation and OpenAI's function calling standards
- Add 'strict' parameter to zodSchemaToJsonSchema function (default: true) - Implement ensureStrictJsonSchema helper based on OpenAI's implementation - Update toJsonSchema and oaiParams functions to support strict mode - Set strict: true by default to match Python version behavior - Fixes livekit#805 - enable strict JSON schema validation for tool definitions This brings parity with the Python implementation and OpenAI's function calling standards
Description
Adds strict JSON schema support for tool definitions to match Python implementation and OpenAI standards.
Changes
strictparameter tozodSchemaToJsonSchema(default: true)ensureStrictJsonSchemahelper functiontoJsonSchemaandoaiParamsto support strict modestrict: trueby default for consistency with Python versionTesting
Fixes #805