Skip to content

Commit 3d37569

Browse files
feat(api): add StatusGoal model and goal field to agent_execution
1 parent 5d8545f commit 3d37569

2 files changed

Lines changed: 30 additions & 2 deletions

File tree

.stats.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
configured_endpoints: 193
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/gitpod/gitpod-b9c1a7558d4dda4b0e58729d1c14b130d19262615d63ce6c78340daeca76188e.yml
3-
openapi_spec_hash: a91da1453dbfb8aceccb085665b3b21d
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/gitpod/gitpod-c98c46c0408dfba7bdd2887afe0c58542113d05999d7ea1c34519f513e9a5fdf.yml
3+
openapi_spec_hash: 6a9e3377c0df786e5e88be2dfad93f66
44
config_hash: 9052d3b03d620cf6871184b15487e020

src/gitpod/types/agent_execution.py

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@
2121
"StatusCurrentOperation",
2222
"StatusCurrentOperationLlm",
2323
"StatusCurrentOperationToolUse",
24+
"StatusGoal",
2425
"StatusMcpIntegrationStatus",
2526
"StatusOutputs",
2627
"StatusUsedEnvironment",
@@ -308,6 +309,30 @@ class StatusCurrentOperation(BaseModel):
308309
tool_use: Optional[StatusCurrentOperationToolUse] = FieldInfo(alias="toolUse", default=None)
309310

310311

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+
311336
class StatusMcpIntegrationStatus(BaseModel):
312337
"""
313338
MCPIntegrationStatus represents the status of a single MCP integration
@@ -393,6 +418,9 @@ class Status(BaseModel):
393418
] = FieldInfo(alias="failureReason", default=None)
394419
"""failure_reason contains a structured reason code for the failure."""
395420

421+
goal: Optional[StatusGoal] = None
422+
"""goal projects the current native Codex thread goal, if any."""
423+
396424
input_tokens_used: Optional[str] = FieldInfo(alias="inputTokensUsed", default=None)
397425

398426
iterations: Optional[str] = None

0 commit comments

Comments
 (0)