-
Hi, is it possible to pass JSON Schema directly as function parameter without having to use @tool. 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.
Replies: 1 comment 1 reply
-
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.
Update: I achieved it using model.generate() which accepts ToolSpecification