Skip to content

Commit a60e11d

Browse files
committed
add ResourceLink type
1 parent 290becb commit a60e11d

File tree

1 file changed

+2
-2
lines changed
  • pydantic_ai_slim/pydantic_ai

1 file changed

+2
-2
lines changed

pydantic_ai_slim/pydantic_ai/mcp.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -243,8 +243,8 @@ def _map_tool_result_part(
243243
return {
244244
'type': 'resource_link',
245245
'uri': part.uri,
246-
'name': getattr(part, 'name', None),
247-
'mimeType': getattr(part, 'mimeType', None),
246+
'name': part.name,
247+
'mimeType': part.mimeType,
248248
}
249249
else:
250250
assert_never(part)

0 commit comments

Comments
 (0)