Skip to main content

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:

NameTypeRequiredDescription
schemaVersionStringyesContract version, major 1 (1.x); minor bumps stay backward compatible.
runIdStringyesId of the run.
tenantIdStringyesTenant of the agent. Default default.
projectIdStringyesIdentifier of the project, the workspace of a tenant that owns agents, knowledge bases, quotas and secrets.
sessionIdStringyesId of the session of the run.
parentRunIdStringyesId of the parent run, null for a root run.
depthIntegeryesDepth of the run in the subagent tree.
agentJsonNodeyesAgent that executes the run, as a JSON object.
taskJsonNodeyesTask given to the run, as a JSON object.
stateStringyesRun state: pending, running, waiting_approval, waiting_input, suspended, succeeded, failed, cancelled or timed_out.
stepsList<JsonNode>yesSteps of the run, as JSON objects.
budgetsJsonNodeyesBudgets of the run, as a JSON object.
errorsList<JsonNode>yesErrors recorded on the run.
retryPolicyJsonNodeyesRetry policy: max_attempts (1 or more, default 3) and backoff_seconds (0 or more, default 2).
resumeJsonNodeyesResume information of the run, as a JSON object.
traceJsonNodeyesW3C trace context of the run (trace_id, span_id).
createdAtOffsetDateTimeyesCreation time of the run.
updatedAtOffsetDateTimeyesTime of the last change of the run.