Open isacarnekvist opened 1 month ago
I wasn't aware tool calling was supported along with thsi. let me see what I can do!
I might be misunderstanding how to use ell as well of course, but maybe it’s clear what I’m trying to achieve?
I don’t want to enforce the schema on the responses from the tools, or the calls to the tools, but from the final output from the llm. You might have intended another usage pattern here?
I am facing the exact same issue. I want the final response from the LLM to be formatted, but the intermediate tool calls do not need to adhere to this format.
Oh I see one sec. Will push a fix
On Wed, Oct 2, 2024 at 9:53 AM Roy Nijhuis @.***> wrote:
I am facing the exact same issue. I want the final response from the LLM to be formatted, but the intermediate tool calls do not need to adhere to this format.
— Reply to this email directly, view it on GitHub https://github.com/MadcowD/ell/issues/232#issuecomment-2389152219, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAFPVL6DTVGMHBLDHYVF7XTZZQQIRAVCNFSM6AAAAABOX52JA6VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDGOBZGE2TEMRRHE . You are receiving this because you commented.Message ID: @.***>
If I provide both tools and a pydantic model as response_format, the program breaks with
Code to reproduce the issue: