Skip to content

Commit 8661b45

Browse files
authored
fix(explorer): allow extra fields in client models (#102723)
Allows all data from Seer to reach the frontend even if we don't explicitly define the field in the explorer client's models.
1 parent 713b43d commit 8661b45

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

src/sentry/seer/explorer/client_models.py

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,9 @@ class ToolCall(BaseModel):
1515
function: str
1616
args: str
1717

18+
class Config:
19+
extra = "allow"
20+
1821

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

29+
class Config:
30+
extra = "allow"
31+
2632

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

41+
class Config:
42+
extra = "allow"
43+
3544

3645
class SeerRunState(BaseModel):
3746
"""State of a Seer Explorer session."""
@@ -40,3 +49,6 @@ class SeerRunState(BaseModel):
4049
blocks: list[MemoryBlock]
4150
status: Literal["processing", "completed", "error"]
4251
updated_at: str
52+
53+
class Config:
54+
extra = "allow"

0 commit comments

Comments
 (0)