dexaai / dexter

LLM tools used in production at Dexa
https://dexter.dexa.ai
MIT License
69 stars 4 forks source link

Retry mechanism broken for tool calling #21

Closed rileytomasek closed 7 months ago

rileytomasek commented 8 months ago

When a function calls arguments fail the Zod validation we add a user message with the validation error and retry. This doesn't work with tool calling and throws:

An assistant message with 'tool_calls' must be followed by tool messages responding to each 'tool_call_id'.
rileytomasek commented 7 months ago

Resolved by #22