MCPcopy Create free account
hub / github.com/pgadmin-org/pgadmin4 / ToolResult

Class ToolResult

web/pgadmin/llm/models.py:52–64  ·  view source on GitHub ↗

Represents the result of a tool execution.

Source from the content-addressed store, hash-verified

50
51@dataclass
52class ToolResult:
53 """Represents the result of a tool execution."""
54 tool_call_id: str
55 content: str
56 is_error: bool = False
57
58 def to_dict(self) -> dict:
59 """Convert to dictionary representation."""
60 return {
61 'tool_call_id': self.tool_call_id,
62 'content': self.content,
63 'is_error': self.is_error
64 }
65
66
67@dataclass

Callers 2

deserialize_historyFunction · 0.90
tool_resultMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected