chore: more sweeping (#33533)

more fixes for refs
This commit is contained in:
Mason Daugherty
2025-10-16 15:44:56 -04:00
committed by GitHub
parent 6d73003b17
commit 15db024811
13 changed files with 32 additions and 57 deletions

View File

@@ -2197,7 +2197,7 @@ class ChatAnthropic(BaseChatModel):
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
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`.
@@ -2293,10 +2293,6 @@ class ChatAnthropic(BaseChatModel):
# 'justification': 'Both a pound of bricks and a pound of feathers weigh one pound. The weight is the same, but the volume and density of the two substances differ.'
# }
```
!!! warning "Behavior changed in 0.1.22"
Added support for TypedDict class as `schema`.
""" # noqa: E501
formatted_tool = convert_to_anthropic_tool(schema)
tool_name = formatted_tool["name"]