io.enterpriseai.model.ExecutionContract
Source: sdks/java/enterprise-ai-java/src/main/java/io/enterpriseai/model/ExecutionContract.java. Back to the Java SDK reference index.
note
This page is generated by tools/docs/gen_sdk_reference.py from the SDK sources and the OpenAPI text folders. Do not edit it by hand: change the source and regenerate.
Model ExecutionContract
Execution Contract v1 (contracts/v1/execution-contract.schema.json): state, steps and budgets of one run.
Fields:
| Name | Type | Required | Description |
|---|---|---|---|
schemaVersion | String | yes | Contract version, major 1 (1.x); minor bumps stay backward compatible. |
runId | String | yes | Id of the run. |
tenantId | String | yes | Tenant of the agent. Default default. |
projectId | String | yes | Identifier of the project, the workspace of a tenant that owns agents, knowledge bases, quotas and secrets. |
sessionId | String | yes | Id of the session of the run. |
parentRunId | String | yes | Id of the parent run, null for a root run. |
depth | Integer | yes | Depth of the run in the subagent tree. |
agent | JsonNode | yes | Agent that executes the run, as a JSON object. |
task | JsonNode | yes | Task given to the run, as a JSON object. |
state | String | yes | Run state: pending, running, waiting_approval, waiting_input, suspended, succeeded, failed, cancelled or timed_out. |
steps | List<JsonNode> | yes | Steps of the run, as JSON objects. |
budgets | JsonNode | yes | Budgets of the run, as a JSON object. |
errors | List<JsonNode> | yes | Errors recorded on the run. |
retryPolicy | JsonNode | yes | Retry policy: max_attempts (1 or more, default 3) and backoff_seconds (0 or more, default 2). |
resume | JsonNode | yes | Resume information of the run, as a JSON object. |
trace | JsonNode | yes | W3C trace context of the run (trace_id, span_id). |
createdAt | OffsetDateTime | yes | Creation time of the run. |
updatedAt | OffsetDateTime | yes | Time of the last change of the run. |