Skip to main content
The Ollama Tools model provides access to the Ollama models and passes tools in XML format to the model.

Parameters

ParameterTypeDefaultDescription
idstr"llama3.2"The name of the Ollama model to use
namestr"OllamaTools"The name of the model
providerstr"Ollama"The provider of the model
hoststr"http://localhost:11434"The host URL for the Ollama server
timeoutOptional[int]NoneRequest timeout in seconds
formatOptional[str]NoneThe format to return the response in (e.g., “json”)
optionsOptional[Dict[str, Any]]NoneAdditional model options (temperature, top_p, etc.)
keep_aliveOptional[Union[float, str]]NoneHow long to keep the model loaded (e.g., “5m”, 3600 seconds)
templateOptional[str]NoneThe prompt template to use
systemOptional[str]NoneSystem message to use
rawOptional[bool]NoneWhether to return raw response without formatting
streamboolTrueWhether to stream the response
This model passes tools in XML format instead of JSON for better compatibility with certain models.