Skip to content

How does the framework determine tool calls based on model response format? #3204

@RhythmicWave

Description

@RhythmicWave

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    questionFurther information is requested

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions