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

Class ToolCall

web/pgadmin/llm/models.py:36–48  ·  view source on GitHub ↗

Represents a tool call requested by the LLM.

Source from the content-addressed store, hash-verified

34
35@dataclass
36class ToolCall:
37 """Represents a tool call requested by the LLM."""
38 id: str
39 name: str
40 arguments: dict[str, Any]
41
42 def to_dict(self) -> dict:
43 """Convert to dictionary representation."""
44 return {
45 'id': self.id,
46 'name': self.name,
47 'arguments': self.arguments
48 }
49
50
51@dataclass

Callers 14

deserialize_historyFunction · 0.90
_parse_responseMethod · 0.90
_read_openai_streamMethod · 0.90
_parse_responseMethod · 0.90
_read_ollama_streamMethod · 0.90
_parse_responseMethod · 0.90
_read_openai_streamMethod · 0.90
_parse_responseMethod · 0.90
test_tool_pairsMethod · 0.90

Calls

no outgoing calls

Tested by 3

test_tool_pairsMethod · 0.72