mirror of
https://github.com/hwchase17/langchain.git
synced 2026-06-09 10:17:00 +00:00
@@ -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"]
|
||||
|
||||
Reference in New Issue
Block a user