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

Method to_message

web/pgadmin/llm/models.py:172–177  ·  view source on GitHub ↗

Convert response to an assistant message.

(self)

Source from the content-addressed store, hash-verified

170 return len(self.tool_calls) > 0
171
172 def to_message(self) -> Message:
173 """Convert response to an assistant message."""
174 return Message.assistant(
175 content=self.content,
176 tool_calls=self.tool_calls
177 )
178
179 def to_dict(self) -> dict:
180 """Convert to dictionary representation."""

Callers 2

chat_with_databaseFunction · 0.80

Calls 1

assistantMethod · 0.80

Tested by

no test coverage detected