Skip to content

Commit c2c0467

Browse files
Update src/google/adk/models/anthropic_llm.py
Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
1 parent db08714 commit c2c0467

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/google/adk/models/anthropic_llm.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ def part_to_message_block(
101101
response_data = part.function_response.response
102102

103103
# Handle content array format
104-
if "content" in response_data and isinstance(response_data["content"], list):
104+
if isinstance(response_data, dict) and "content" in response_data and isinstance(response_data["content"], list):
105105
content_items = []
106106
for item in response_data["content"]:
107107
if isinstance(item, dict):

0 commit comments

Comments
 (0)