Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions src/sentry/seer/explorer/client_models.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,9 @@ class ToolCall(BaseModel):
function: str
args: str

class Config:
extra = "allow"


class Message(BaseModel):
"""A message in the conversation."""
Expand All @@ -23,6 +26,9 @@ class Message(BaseModel):
content: str | None = None
tool_calls: list[ToolCall] | None = None

class Config:
extra = "allow"


class MemoryBlock(BaseModel):
"""A block in the Explorer agent's conversation/memory."""
Expand All @@ -32,6 +38,9 @@ class MemoryBlock(BaseModel):
timestamp: str
loading: bool = False

class Config:
extra = "allow"


class SeerRunState(BaseModel):
"""State of a Seer Explorer session."""
Expand All @@ -40,3 +49,6 @@ class SeerRunState(BaseModel):
blocks: list[MemoryBlock]
status: Literal["processing", "completed", "error"]
updated_at: str

class Config:
extra = "allow"
Loading