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

Method tool_result

web/pgadmin/llm/models.py:111–122  ·  view source on GitHub ↗

Create a tool result message.

(cls, tool_call_id: str, content: str,
                    is_error: bool = False)

Source from the content-addressed store, hash-verified

109
110 @classmethod
111 def tool_result(cls, tool_call_id: str, content: str,
112 is_error: bool = False) -> 'Message':
113 """Create a tool result message."""
114 return cls(
115 role=Role.TOOL,
116 content='',
117 tool_results=[ToolResult(
118 tool_call_id=tool_call_id,
119 content=content,
120 is_error=is_error
121 )]
122 )
123
124
125@dataclass

Callers 5

chat_with_databaseFunction · 0.80
test_tool_pairsMethod · 0.80

Calls 1

ToolResultClass · 0.85

Tested by 3

test_tool_pairsMethod · 0.64