LLMConfig.
Model provider summary
This table outlines the tool calling features available to control tool calling.Warnings
- Using these parameters to force tool calling or no tool calling can make it difficult to have the agents perform different actions. For example, you may want your agent to call a tool and then do something else on their next turn, however, by using these parameters this can’t be achieved unless you change the agent’s LLM configuration before their next turn.
- Typically, using these parameters will force models to not output any other tokens besides the tool call and this may affect the models ability to do reasoning before the tool call.
- In a Swarm the AfterWork will never be triggered if an agent always makes a tool call.
Anthropic
Anthropic supports the ability to force the model to call at least one call or to call no tools using thetool_choice parameter.
The default value is “auto” and doesn’t need to be provided.
Cerebras
Cerebras supports the ability to force the model to call at least one call or to call no tools using thetool_choice parameter.
The default value is “auto” and doesn’t need to be provided.
Cohere
Cohere supports the ability to force the model to call at least one call or to call no tools using thetool_choice parameter.
DeepSeek
DeepSeek supports the ability to force the model to call at least one call or to call no tools using thetool_choice parameter.
The default value is “auto” and doesn’t need to be provided.
Gemini / Vertex AI
Gemini / Vertex AI supports the ability to force the model to call at least one call or to call no tools using thetool_config parameter.
Groq
Groq supports the ability to force the model to call at least one call or to call no tools using thetool_choice parameter.
The default value is “auto” and doesn’t need to be provided.
Mistral AI
Mistral AI supports the ability to force the model to call at least one call or to call no tools using thetool_choice parameter.
The default value is “auto” and doesn’t need to be provided.
OpenAI / Azure OpenAI
OpenAI / Azure OpenAI supports the ability to force the model to call at least one call or to call no tools using thetool_choice parameter.
The default value is “auto” and doesn’t need to be provided.
Together AI
Together AI supports the ability to specify a tool that the model has to call using thetool_choice parameter.