Skip to content
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

feat: strict parameter in ToolDefinition #227

Open
1 task done
klntsky opened this issue Jan 21, 2025 · 1 comment
Open
1 task done

feat: strict parameter in ToolDefinition #227

klntsky opened this issue Jan 21, 2025 · 1 comment
Labels

Comments

@klntsky
Copy link

klntsky commented Jan 21, 2025

  • I have looked for existing issues (including closed) about this

Feature Request

ToolDefinition does not contain a strict option

https://platform.openai.com/docs/assistants/tools/function-calling

Alternatives

The only alternative is to validate the returned JSON manually

@Tameflame
Copy link

I'm definitely in need for this feature, or at least a workaround. Is there a way to add strict to a tooldef so that the jsonschema passed to the llm is adhered to more consistently? I'm getting non-adherence to my schema in tool responses and it may be because of this

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants