Agent execution API#

Served by: GeoNeMo agent service API. Schemas are on the schemas page.

Method

Path

Summary

GET

/v1/agent-instances/{instance_id}/execution/tasks

List execution tasks

POST

/v1/agent-instances/{instance_id}/execution/tasks/{task_id}/commit

Commit task outcome

POST

/v1/agent-instances/{instance_id}/execution/tasks/{task_id}/context

Get task context

POST

/v1/agent-instances/{instance_id}/execution/{action}

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_get

  • Access: 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

instance_id

path

string

yes

The agent instance ID.

limit

query

integer

offset

query

integer

X-GeoNemo-Project-ID

header

string

Organizational project metadata only; not an authorization or tenant boundary.

Responses

Status

Meaning

Body

200

OK

TaskPage

422

Validation Error

HTTPValidationError

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_post

  • Access: 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

instance_id

path

string

yes

The agent instance ID.

task_id

path

string

yes

The execution task ID.

X-GeoNemo-Project-ID

header

string

Organizational project metadata only; not an authorization or tenant boundary.

Request body

Content type

Schema

Required

application/json

TaskCommit

yes

Responses

Status

Meaning

Body

200

OK

AgentTask

422

Validation Error

HTTPValidationError

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_post

  • Access: 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

instance_id

path

string

yes

The agent instance ID.

task_id

path

string

yes

The execution task ID.

X-GeoNemo-Project-ID

header

string

Organizational project metadata only; not an authorization or tenant boundary.

Request body

Content type

Schema

Required

application/json

TaskAssignment

yes

Responses

Status

Meaning

Body

200

OK

TaskContext

422

Validation Error

HTTPValidationError

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__post

  • Access: 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

instance_id

path

string

yes

The agent instance ID.

action

path

string

yes

The action to take: pause, resume or retry.

X-GeoNemo-Project-ID

header

string

Organizational project metadata only; not an authorization or tenant boundary.

Responses

Status

Meaning

Body

200

OK

TaskPage

422

Validation Error

HTTPValidationError