Skip to content

Commit 28d5e7b

Browse files
committed
Have ToolResultContent.content use ContentBlock type (forward ref)
1 parent 607976e commit 28d5e7b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/mcp/types.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
from collections.abc import Callable
2-
from typing import Annotated, Any, Generic, Literal, TypeAlias, TypeVar, Union
2+
from typing import Annotated, Any, Generic, Literal, TypeAlias, TypeVar
33

44
from pydantic import BaseModel, ConfigDict, Field, FileUrl, RootModel
55
from pydantic.networks import AnyUrl, UrlConstraints
@@ -822,7 +822,7 @@ class ToolResultContent(BaseModel):
822822
toolUseId: str
823823
"""The unique identifier that corresponds to the tool call's id field."""
824824

825-
content: list[Union[TextContent, ImageContent, AudioContent, "ResourceLink", "EmbeddedResource"]] = []
825+
content: list["ContentBlock"] = []
826826
"""
827827
A list of content objects representing the tool result.
828828
Defaults to empty list if not provided.

0 commit comments

Comments
 (0)