Agent execution API#
Served by: GeoNeMo agent service API. Schemas are on the schemas page.
Method |
Path |
Summary |
|---|---|---|
|
|
List execution tasks |
|
|
Commit task outcome |
|
|
Get task context |
|
|
Pause, resume or retry execution |
GET /v1/agent-instances/{instance_id}/execution/tasks#
List execution tasks
Lists an instance’s durable execution tasks, with the total and whether execution is paused. Paged by limit (at most 100) and offset. Returns 503 when durable execution is unavailable.
Operation:
list_tasks_v1_agent_instances__instance_id__execution_tasks_getAccess: bearer token or console session cookie
curl -X GET "https://geonemo.example.com/v1/agent-instances/<instance_id>/execution/tasks" \
-H "Authorization: Bearer $TOKEN"
Parameters
Name |
In |
Type |
Required |
Description |
|---|---|---|---|---|
|
path |
string |
yes |
The agent instance ID. |
|
query |
integer |
||
|
query |
integer |
||
|
header |
string |
Organizational project metadata only; not an authorization or tenant boundary. |
Responses
Status |
Meaning |
Body |
|---|---|---|
|
OK |
|
|
Validation Error |
POST /v1/agent-instances/{instance_id}/execution/tasks/{task_id}/commit#
Commit task outcome
Commits a task’s outcome and, optionally, an instance checkpoint. Repeating the same commit returns the same task; a different outcome returns 409, as does a task the caller no longer holds.
Operation:
task_commit_v1_agent_instances__instance_id__execution_tasks__task_id__commit_postAccess: bearer token or console session cookie
curl -X POST "https://geonemo.example.com/v1/agent-instances/<instance_id>/execution/tasks/<task_id>/commit" \
-H "Authorization: Bearer $TOKEN" \
-H "Content-Type: application/json" \
-d @body.json
Parameters
Name |
In |
Type |
Required |
Description |
|---|---|---|---|---|
|
path |
string |
yes |
The agent instance ID. |
|
path |
string |
yes |
The execution task ID. |
|
header |
string |
Organizational project metadata only; not an authorization or tenant boundary. |
Request body
Content type |
Schema |
Required |
|---|---|---|
|
yes |
Responses
Status |
Meaning |
Body |
|---|---|---|
|
OK |
|
|
Validation Error |
POST /v1/agent-instances/{instance_id}/execution/tasks/{task_id}/context#
Get task context
Returns what a task needs to run: its mission input, the instance checkpoint and the results of its dependencies. The caller must hold the task’s current assignment (409 otherwise).
Operation:
task_context_v1_agent_instances__instance_id__execution_tasks__task_id__context_postAccess: bearer token or console session cookie
curl -X POST "https://geonemo.example.com/v1/agent-instances/<instance_id>/execution/tasks/<task_id>/context" \
-H "Authorization: Bearer $TOKEN" \
-H "Content-Type: application/json" \
-d @body.json
Parameters
Name |
In |
Type |
Required |
Description |
|---|---|---|---|---|
|
path |
string |
yes |
The agent instance ID. |
|
path |
string |
yes |
The execution task ID. |
|
header |
string |
Organizational project metadata only; not an authorization or tenant boundary. |
Request body
Content type |
Schema |
Required |
|---|---|---|
|
yes |
Responses
Status |
Meaning |
Body |
|---|---|---|
|
OK |
|
|
Validation Error |
POST /v1/agent-instances/{instance_id}/execution/{action}#
Pause, resume or retry execution
Applies pause, resume or retry to an instance’s durable execution and returns its tasks. Pausing returns running tasks to ready; retry reopens tasks that need attention. Returns 409 for terminal executions or releases without durable execution.
Operation:
control_execution_v1_agent_instances__instance_id__execution__action__postAccess: bearer token or console session cookie
curl -X POST "https://geonemo.example.com/v1/agent-instances/<instance_id>/execution/<action>" \
-H "Authorization: Bearer $TOKEN"
Parameters
Name |
In |
Type |
Required |
Description |
|---|---|---|---|---|
|
path |
string |
yes |
The agent instance ID. |
|
path |
string |
yes |
The action to take: |
|
header |
string |
Organizational project metadata only; not an authorization or tenant boundary. |
Responses
Status |
Meaning |
Body |
|---|---|---|
|
OK |
|
|
Validation Error |