mirror of
https://github.com/BerriAI/litellm.git
synced 2026-10-07 02:59:05 +00:00
managed agents: add created_at to AgentOut and SessionOut
Surfaces created_at on the read responses so the agent-platform UI can render a 'Created' column on the agent and session list pages.
This commit is contained in:
parent
e1a878b6d9
commit
d6b97d3b7f
1 changed files with 3 additions and 0 deletions
|
|
@ -1,5 +1,6 @@
|
|||
"""Pydantic v2 type definitions for the managed_agents proxy feature."""
|
||||
|
||||
from datetime import datetime
|
||||
from typing import Any, Dict, List, Optional
|
||||
|
||||
from pydantic import BaseModel, ConfigDict, Field
|
||||
|
|
@ -89,6 +90,7 @@ class AgentOut(BaseModel):
|
|||
model: str
|
||||
template_id: str
|
||||
branch: str
|
||||
created_at: Optional[datetime] = None
|
||||
|
||||
|
||||
class SessionCreateIn(BaseModel):
|
||||
|
|
@ -107,6 +109,7 @@ class SessionOut(BaseModel):
|
|||
status: str
|
||||
task_arn: Optional[str] = None
|
||||
response: Optional[Dict[str, Any]] = None
|
||||
created_at: Optional[datetime] = None
|
||||
|
||||
|
||||
class MessageIn(BaseModel):
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue