Skip to content

Commit 82db89d

Browse files
Restore Anthropic tool_use to function calls unless code execution
Co-authored-by: eavanvalkenburg <13749212+eavanvalkenburg@users.noreply.github.com>
1 parent f7c856c commit 82db89d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

python/packages/anthropic/agent_framework_anthropic/_chat_client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -602,7 +602,7 @@ def _parse_contents_from_anthropic(
602602
raw_representation=content_block,
603603
)
604604
)
605-
elif "code_execution" in (content_block.name or "") or content_block.type == "tool_use":
605+
elif "code_execution" in (content_block.name or ""):
606606
contents.append(
607607
CodeInterpreterToolCallContent(
608608
call_id=content_block.id,

0 commit comments

Comments
 (0)