diff --git a/backend/app/services/mongo/explore.py b/backend/app/services/mongo/explore.py index ffe4cf939..df54145d8 100644 --- a/backend/app/services/mongo/explore.py +++ b/backend/app/services/mongo/explore.py @@ -2304,6 +2304,7 @@ async def fetch_flattened_tasks( "task_eval_at": "$last_eval.created_at", "task_created_at": "$created_at", "session_id": "$session_id", + "task_position": "$task_position", } if with_sessions: diff --git a/phospho-python/phospho/models.py b/phospho-python/phospho/models.py index d8cb4a779..1ab000df6 100644 --- a/phospho-python/phospho/models.py +++ b/phospho-python/phospho/models.py @@ -424,6 +424,7 @@ class FlattenedTask(BaseModel, extra="allow"): task_eval_source: Optional[str] = None task_eval_at: Optional[int] = None task_created_at: Optional[int] = None + task_position: Optional[int] = None session_id: Optional[str] = None session_length: Optional[int] = None event_name: Optional[str] = None