Question
I have a question regarding the framework's mechanism for tool invocation.
I've observed that the model doesn't always trigger an actual tool call, which may be related to its capabilities. To improve this, I want to guide the model via prompts on the correct way to trigger tools when it fails.
Could you please explain how the framework decides whether to perform a tool call based on the model's response format? Specifically:
- What specific structure, keywords, or format in the model's output does the framework use to identify a tool call?
- Are there any predefined patterns or rules for detecting valid tool invocations?
- How can we adjust prompts to ensure the model's responses align with the expected tool-call format?
Understanding this process will help in designing more effective prompts to reduce missed tool invocations. Thank you for your help!
Additional Context
No response