Skip to content

Commit af7aefc

Browse files
feat(api): add goal field to agent execution status
1 parent 7d70a05 commit af7aefc

2 files changed

Lines changed: 33 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/resources/agents.ts

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -802,6 +802,11 @@ export namespace AgentExecution {
802802
| 'AGENT_EXECUTION_FAILURE_REASON_INTERNAL'
803803
| 'AGENT_EXECUTION_FAILURE_REASON_AGENT_EXECUTION';
804804

805+
/**
806+
* goal projects the current native Codex thread goal, if any.
807+
*/
808+
goal?: Status.Goal;
809+
805810
inputTokensUsed?: string;
806811

807812
iterations?: string;
@@ -923,6 +928,32 @@ export namespace AgentExecution {
923928
}
924929
}
925930

931+
/**
932+
* goal projects the current native Codex thread goal, if any.
933+
*/
934+
export interface Goal {
935+
/**
936+
* objective is the current goal text tracked by the native Codex thread-goal
937+
* subsystem.
938+
*/
939+
objective?: string;
940+
941+
/**
942+
* status is the lifecycle state of the current goal.
943+
*/
944+
status?:
945+
| 'GOAL_STATUS_UNSPECIFIED'
946+
| 'GOAL_STATUS_ACTIVE'
947+
| 'GOAL_STATUS_PAUSED'
948+
| 'GOAL_STATUS_COMPLETED'
949+
| 'GOAL_STATUS_BUDGET_EXHAUSTED';
950+
951+
/**
952+
* updated_at is the most recent native goal update timestamp, when available.
953+
*/
954+
updatedAt?: string;
955+
}
956+
926957
/**
927958
* MCPIntegrationStatus represents the status of a single MCP integration within an
928959
* agent execution context

0 commit comments

Comments
 (0)