Schema for the `TaskAgentInfo` type.
| 15942 | # Experimental: this type is part of an experimental API and may change or be removed. |
| 15943 | @dataclass |
| 15944 | class TaskAgentInfo: |
| 15945 | """Schema for the `TaskAgentInfo` type.""" |
| 15946 | |
| 15947 | agent_type: str |
| 15948 | """Type of agent running this task""" |
| 15949 | |
| 15950 | description: str |
| 15951 | """Short description of the task""" |
| 15952 | |
| 15953 | id: str |
| 15954 | """Unique task identifier""" |
| 15955 | |
| 15956 | prompt: str |
| 15957 | """Most recent prompt delivered to the agent. Updated whenever the agent receives a |
| 15958 | follow-up message. |
| 15959 | """ |
| 15960 | started_at: datetime |
| 15961 | """ISO 8601 timestamp when the task was started""" |
| 15962 | |
| 15963 | status: TaskStatus |
| 15964 | """Current lifecycle status of the task""" |
| 15965 | |
| 15966 | tool_call_id: str |
| 15967 | """Tool call ID associated with this agent task""" |
| 15968 | |
| 15969 | type: ClassVar[str] = "agent" |
| 15970 | """Task kind""" |
| 15971 | |
| 15972 | active_started_at: datetime | None = None |
| 15973 | """ISO 8601 timestamp when the current active period began""" |
| 15974 | |
| 15975 | active_time_ms: int | None = None |
| 15976 | """Accumulated active execution time in milliseconds""" |
| 15977 | |
| 15978 | can_promote_to_background: bool | None = None |
| 15979 | """Whether the task is currently in the original sync wait and can be moved to background |
| 15980 | mode. False once it is already backgrounded, idle, finished, or no longer has a |
| 15981 | promotable sync waiter. |
| 15982 | """ |
| 15983 | completed_at: datetime | None = None |
| 15984 | """ISO 8601 timestamp when the task finished""" |
| 15985 | |
| 15986 | error: str | None = None |
| 15987 | """Error message when the task failed""" |
| 15988 | |
| 15989 | execution_mode: TaskExecutionMode | None = None |
| 15990 | """Whether task execution is synchronously awaited or managed in the background""" |
| 15991 | |
| 15992 | idle_since: datetime | None = None |
| 15993 | """ISO 8601 timestamp when the agent entered idle state""" |
| 15994 | |
| 15995 | latest_response: str | None = None |
| 15996 | """Most recent response text from the agent""" |
| 15997 | |
| 15998 | model: str | None = None |
| 15999 | """Requested model override for the task when specified""" |
| 16000 | |
| 16001 | resolved_model: str | None = None |
no outgoing calls
no test coverage detected
searching dependent graphs…