Skip to content

Commit 46a7b87

Browse files
committed
chore: Added references between mcp.py and _agent_graph.py regarding multi-modal content parsing.
1 parent 13fb859 commit 46a7b87

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

pydantic_ai_slim/pydantic_ai/_agent_graph.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1080,6 +1080,7 @@ async def _call_tool(
10801080
f'The return value of tool {tool_call.tool_name!r} contains invalid nested `ToolReturn` objects. '
10811081
f'`ToolReturn` should be used directly.'
10821082
)
1083+
# TODO: Keep updated with the binary parsing in mcp.py
10831084
elif isinstance(content, _messages.MultiModalContent):
10841085
identifier = content.identifier
10851086

pydantic_ai_slim/pydantic_ai/mcp.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -282,6 +282,7 @@ async def direct_call_tool(
282282
for idx, (part, part_metadata) in enumerate(parts_with_metadata):
283283
if part_metadata is not None:
284284
parts_metadata[idx] = part_metadata
285+
# TODO: Keep updated with the multimodal content parsing in _agent_graph.py
285286
if isinstance(part, messages.BinaryContent):
286287
identifier = part.identifier
287288

0 commit comments

Comments
 (0)