MCPcopy Create free account
hub / github.com/SkyworkAI/DeepResearchAgent / ToolResponse

Class ToolResponse

src/tool/types.py:16–22  ·  view source on GitHub ↗

Response for a tool call.

Source from the content-addressed store, hash-verified

14 parsed_model: Optional[BaseModel] = Field(default=None, description="The parsed model of the extra data")
15
16class ToolResponse(BaseModel):
17 """Response for a tool call."""
18 model_config = ConfigDict(arbitrary_types_allowed=True, extra="allow")
19
20 success: bool = Field(description="Whether the tool call was successful")
21 message: str = Field(description="The message from the tool call")
22 extra: Optional[ToolExtra] = Field(default=None, description="The extra data from the tool call")
23
24class Tool(BaseModel):
25 """Base class for all tools that can be exposed through function calling."""

Callers 15

__call__Method · 0.90
__call__Method · 0.90
__call__Method · 0.90
__call__Method · 0.90
__call__Method · 0.90
__call__Method · 0.90
__call__Method · 0.90
__call__Method · 0.90
__call__Method · 0.90
__call__Method · 0.90
__call__Method · 0.90
__call__Method · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected