feat(history): Implement conversation history management with artifact restoration and Markdown rendering.

This commit is contained in:
Yunxiao Xu
2026-02-13 01:59:37 -08:00
parent 339f69a2a3
commit dc6e73ec79
18 changed files with 2288 additions and 62 deletions

View File

@@ -59,7 +59,8 @@ async def get_conversation_messages(
"id": str(m.id),
"role": m.role,
"content": m.content,
"created_at": m.created_at
"created_at": m.created_at,
"plot_ids": [str(p.id) for p in m.plots]
} for m in messages
]

View File

@@ -37,7 +37,7 @@ class MessageResponse(BaseModel):
role: str
content: str
created_at: datetime
# Plots are fetched separately via artifact endpoints
plot_ids: List[str] = []
class ConversationUpdate(BaseModel):
name: Optional[str] = None

View File

@@ -328,7 +328,8 @@ def main():
"code_output": None,
"error": None,
"plots": [],
"dfs": {}
"dfs": {},
"iterations": 0
}
# Placeholder for graph output