Response for a tool call.
| 14 | parsed_model: Optional[BaseModel] = Field(default=None, description="The parsed model of the extra data") |
| 15 | |
| 16 | class 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 | |
| 24 | class Tool(BaseModel): |
| 25 | """Base class for all tools that can be exposed through function calling.""" |
no outgoing calls
no test coverage detected