Use an LLM to select amongst provided tools
tools
argument.tools
key that we use to pass the functions:
tool_choice
option, auto
, leaves it up to the LLM whether to return one function, multiple functions, or no functions at all, depending on what the model feels is most appropriate based on the prompt.
required
option for tool_choice
means that the LLM is guaranteed to chose at least one function, no matter what.
none
option for tool_choice
means that the LLM will not return a function, and will instead produce ordinary text output. This is useful when you want to provide the full context of a conversation without adding and dropping the tools
parameter call-by-call.