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

Method assistant

web/pgadmin/llm/models.py:101–108  ·  view source on GitHub ↗

Create an assistant message.

(cls, content: str,
                  tool_calls: list[ToolCall] = None)

Source from the content-addressed store, hash-verified

99
100 @classmethod
101 def assistant(cls, content: str,
102 tool_calls: list[ToolCall] = None) -> 'Message':
103 """Create an assistant message."""
104 return cls(
105 role=Role.ASSISTANT,
106 content=content,
107 tool_calls=tool_calls or []
108 )
109
110 @classmethod
111 def tool_result(cls, tool_call_id: str, content: str,

Callers 8

to_messageMethod · 0.80
test_within_budgetMethod · 0.80
test_drops_low_valueMethod · 0.80
test_tool_pairsMethod · 0.80

Calls

no outgoing calls