Replies: 1 comment
-
Update: I achieved it using model.generate() which accepts ToolSpecification
I got it after sifting through issues and kind of got it from here: #601 However, it would be great if this can also be achieved with AiServices. I like the elegance of AiServices. :) |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi, is it possible to pass JSON Schema directly as function parameter without having to use @tool.
The use-case is that, I have various different JSON Schema stored in the database. So, I want to use that schema to produce different JSON response. JSON Schema can be updated and added by the user.
For now, I've just pass the schema as part of the user message. However, the result kind of hit or miss. I want to utilized the function call for data extraction with consistent JSON format structure.
https://nesin.io/blog/openai-api-json-response
I've seen example with data extraction with POJO, however I need to return a dynamically structured json using the JSON Schema that I already have.
Beta Was this translation helpful? Give feedback.
All reactions