ChatOllama
chat models. For detailed documentation of all ChatOllama
features and configurations head to the API reference.
Class | Package | Local | Serializable | PY support | Package downloads | Package latest |
---|---|---|---|---|---|---|
ChatOllama | @langchain/ollama | ✅ | beta | ✅ |
Tool calling | Structured output | JSON mode | Image input | Audio input | Video input | Token-level streaming | Token usage | Logprobs |
---|---|---|---|---|---|---|---|---|
✅ | ✅ | ✅ | ✅ | ❌ | ❌ | ✅ | ✅ | ❌ |
@langchain/ollama
package.
@langchain/ollama
package:
.withStructuredOutput
.withStructuredOutput()
to get a structured output from the tool.
content
field to multimodal-capable models like this: