|
21 | 21 | "StatusCurrentOperation", |
22 | 22 | "StatusCurrentOperationLlm", |
23 | 23 | "StatusCurrentOperationToolUse", |
| 24 | + "StatusGoal", |
24 | 25 | "StatusMcpIntegrationStatus", |
25 | 26 | "StatusOutputs", |
26 | 27 | "StatusUsedEnvironment", |
@@ -308,6 +309,30 @@ class StatusCurrentOperation(BaseModel): |
308 | 309 | tool_use: Optional[StatusCurrentOperationToolUse] = FieldInfo(alias="toolUse", default=None) |
309 | 310 |
|
310 | 311 |
|
| 312 | +class StatusGoal(BaseModel): |
| 313 | + """goal projects the current native Codex thread goal, if any.""" |
| 314 | + |
| 315 | + objective: Optional[str] = None |
| 316 | + """ |
| 317 | + objective is the current goal text tracked by the native Codex thread-goal |
| 318 | + subsystem. |
| 319 | + """ |
| 320 | + |
| 321 | + status: Optional[ |
| 322 | + Literal[ |
| 323 | + "GOAL_STATUS_UNSPECIFIED", |
| 324 | + "GOAL_STATUS_ACTIVE", |
| 325 | + "GOAL_STATUS_PAUSED", |
| 326 | + "GOAL_STATUS_COMPLETED", |
| 327 | + "GOAL_STATUS_BUDGET_EXHAUSTED", |
| 328 | + ] |
| 329 | + ] = None |
| 330 | + """status is the lifecycle state of the current goal.""" |
| 331 | + |
| 332 | + updated_at: Optional[datetime] = FieldInfo(alias="updatedAt", default=None) |
| 333 | + """updated_at is the most recent native goal update timestamp, when available.""" |
| 334 | + |
| 335 | + |
311 | 336 | class StatusMcpIntegrationStatus(BaseModel): |
312 | 337 | """ |
313 | 338 | MCPIntegrationStatus represents the status of a single MCP integration |
@@ -393,6 +418,9 @@ class Status(BaseModel): |
393 | 418 | ] = FieldInfo(alias="failureReason", default=None) |
394 | 419 | """failure_reason contains a structured reason code for the failure.""" |
395 | 420 |
|
| 421 | + goal: Optional[StatusGoal] = None |
| 422 | + """goal projects the current native Codex thread goal, if any.""" |
| 423 | + |
396 | 424 | input_tokens_used: Optional[str] = FieldInfo(alias="inputTokensUsed", default=None) |
397 | 425 |
|
398 | 426 | iterations: Optional[str] = None |
|
0 commit comments