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

Method to_dict

web/pgadmin/llm/models.py:179–187  ·  view source on GitHub ↗

Convert to dictionary representation.

(self)

Source from the content-addressed store, hash-verified

177 )
178
179 def to_dict(self) -> dict:
180 """Convert to dictionary representation."""
181 return {
182 'content': self.content,
183 'tool_calls': [tc.to_dict() for tc in self.tool_calls],
184 'stop_reason': self.stop_reason.value,
185 'model': self.model,
186 'usage': self.usage.to_dict()
187 }
188
189
190@dataclass

Callers

nothing calls this directly

Calls 1

to_dictMethod · 0.45

Tested by

no test coverage detected