style: some cleanup (#33857)

This commit is contained in:
Mason Daugherty
2025-11-06 23:50:46 -05:00
committed by GitHub
parent d40e340479
commit e023201d42
79 changed files with 662 additions and 531 deletions

View File

@@ -1258,10 +1258,10 @@ class ChatOllama(BaseChatModel):
Args:
schema: The output schema. Can be passed in as:
- an OpenAI function/tool schema.
- a JSON Schema,
- a `TypedDict` class,
- or a Pydantic class.
- An OpenAI function/tool schema.
- A JSON Schema,
- A `TypedDict` class,
- Or a Pydantic class.
If `schema` is a Pydantic class then the model output will be a
Pydantic instance of that class, and the model-generated fields will be
@@ -1284,11 +1284,15 @@ class ChatOllama(BaseChatModel):
desired schema into the model call.
include_raw:
If `False` then only the parsed structured output is returned. If
an error occurs during model output parsing it will be raised. If `True`
then both the raw model response (a `BaseMessage`) and the parsed model
response will be returned. If an error occurs during output parsing it
will be caught and returned as well.
If `False` then only the parsed structured output is returned.
If an error occurs during model output parsing it will be raised.
If `True` then both the raw model response (a `BaseMessage`) and the
parsed model response will be returned.
If an error occurs during output parsing it will be caught and returned
as well.
The final output is always a `dict` with keys `'raw'`, `'parsed'`, and
`'parsing_error'`.

View File

@@ -3,17 +3,18 @@ requires = ["hatchling"]
build-backend = "hatchling.build"
[project]
authors = []
name = "langchain-ollama"
description = "An integration package connecting Ollama and LangChain"
license = { text = "MIT" }
readme = "README.md"
authors = []
version = "1.0.0"
requires-python = ">=3.10.0,<4.0.0"
dependencies = [
"ollama>=0.6.0,<1.0.0",
"langchain-core>=1.0.0,<2.0.0",
]
name = "langchain-ollama"
version = "1.0.0"
description = "An integration package connecting Ollama and LangChain"
readme = "README.md"
[project.urls]
Homepage = "https://docs.langchain.com/oss/python/integrations/providers/ollama"