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:
Ishaan Jaffer 2026-05-07 15:50:13 -07:00
parent e1a878b6d9
commit d6b97d3b7f
No known key found for this signature in database

View file

@ -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):