Skip to content

The agent engineering platform.

fix(anthropic): correct model profile data for Fable 5, Sonnet 5, Opus 4.1 (#39604)

Mason Daugherty0727992d4a0d
diff --git a/libs/partners/anthropic/langchain_anthropic/data/_profiles.py b/libs/partners/anthropic/langchain_anthropic/data/_profiles.py
index 418757991c..6d3df5dc9f 100644
--- a/libs/partners/anthropic/langchain_anthropic/data/_profiles.py
+++ b/libs/partners/anthropic/langchain_anthropic/data/_profiles.py
@@ -34,13 +34,21 @@ _PROFILES: dict[str, dict[str, Any]] = {
"video_outputs": False,
"reasoning_output": True,
"tool_calling": True,
- "structured_output": False,
+ "structured_output": True,
"attachment": True,
"temperature": False,
"image_url_inputs": True,
"pdf_tool_message": True,
"image_tool_message": True,
"tool_call_streaming": True,
+ "reasoning_effort_levels": [
+ "low",
+ "medium",
+ "high",
+ "xhigh",
+ "max",
+ ],
+ "reasoning_effort_default": "high",
},
"claude-haiku-4-5": {
"name": "Claude Haiku 4.5 (latest)",
@@ -94,14 +102,6 @@ _PROFILES: dict[str, dict[str, Any]] = {
"image_tool_message": True,
"tool_call_streaming": True,
},
- "claude-opus-4-1": {
- "image_url_inputs": True,
- "pdf_inputs": True,
- "pdf_tool_message": True,
- "image_tool_message": True,
- "structured_output": True,
- "tool_call_streaming": True,
- },
"claude-opus-4-5": {
"name": "Claude Opus 4.5 (latest)",
"release_date": "2025-11-24",
@@ -404,7 +404,7 @@ _PROFILES: dict[str, dict[str, Any]] = {
"video_outputs": False,
"reasoning_output": True,
"tool_calling": True,
- "structured_output": False,
+ "structured_output": True,
"attachment": True,
"temperature": False,
"image_url_inputs": True,
diff --git a/libs/partners/anthropic/langchain_anthropic/data/profile_augmentations.toml b/libs/partners/anthropic/langchain_anthropic/data/profile_augmentations.toml
index c97a7f08a3..cc7c3864aa 100644
--- a/libs/partners/anthropic/langchain_anthropic/data/profile_augmentations.toml
+++ b/libs/partners/anthropic/langchain_anthropic/data/profile_augmentations.toml
@@ -19,9 +19,6 @@ structured_output = true
reasoning_effort_levels = ["low", "medium", "high", "max"]
reasoning_effort_default = "high"
-[overrides."claude-opus-4-1"]
-structured_output = true
-
[overrides."claude-opus-4-5"]
structured_output = true
reasoning_effort_levels = ["low", "medium", "high"]
@@ -52,5 +49,11 @@ reasoning_effort_levels = ["low", "medium", "high", "xhigh", "max"]
reasoning_effort_default = "high"
[overrides."claude-sonnet-5"]
+structured_output = true
+reasoning_effort_levels = ["low", "medium", "high", "xhigh", "max"]
+reasoning_effort_default = "high"
+
+[overrides."claude-fable-5"]
+structured_output = true
reasoning_effort_levels = ["low", "medium", "high", "xhigh", "max"]
reasoning_effort_default = "high"