SDK reference / Models

Models.AgentService namespace

Types

TypeKindDescription
AiAgentclassOne agent: a definition, versioned. Every change of the definition writes a new immutable version.
AiAgentApprovalclassA tool call a run is waiting on: the plan a person accepts or refuses (ADR-0902, ADR-0906). It is bound to the digest of its arguments: what wasaccepted is exactly what runs. The tool's name, arguments and the reason are the platform's record, not the model's words about itself.
AiAgentApprovalStateenumThe state of an approval.
AiAgentDiagnosticclassOne problem in an agent definition.
AiAgentEvaluationclassOne evaluation of an agent version (and, for a comparison, of two) over a set.
AiAgentEvaluationCaseclassOne case of an evaluation set: an input and the checks its outcome must pass.
AiAgentEvaluationCaseMergePatchUpdateReplaceOnlyclassOne case of an evaluation set: an input and the checks its outcome must pass.
AiAgentEvaluationCheckclassOne check on a run's outcome. `kind` is `contains` (the final answer holds the text, ignoring case), `regex` (it matches the pattern, at most 200 characters), `jsonSchema` (the final answer is JSON that fits the schema: `type`, `required`, `properties`, `enum`, `items`), `toolCalled` or `toolNotCalled` (a tool name), `maxSteps` (the model made at most this many calls) or `maxCost` (the run cost at most this many micro-euros).
AiAgentEvaluationCheckMergePatchUpdateReplaceOnlyclassOne check on a run's outcome. `kind` is `contains` (the final answer holds the text, ignoring case), `regex` (it matches the pattern, at most 200 characters), `jsonSchema` (the final answer is JSON that fits the schema: `type`, `required`, `properties`, `enum`, `items`), `toolCalled` or `toolNotCalled` (a tool name), `maxSteps` (the model made at most this many calls) or `maxCost` (the run cost at most this many micro-euros).
AiAgentEvaluationDeltaclassA case whose outcome differs between the two versions of a comparison.
AiAgentEvaluationResultclassWhat one case came to.
AiAgentEvaluationSetclassA set of cases to run an agent version over (at most 50 cases).
AiAgentEvaluationSetMergePatchUpdateclassA set of cases to run an agent version over (at most 50 cases).
AiAgentEvaluationSetMergePatchUpdate_descriptionMember1class
AiAgentEvaluationSetMergePatchUpdate_displayNameMember1class
AiAgentEvaluationStateenum
AiAgentEvaluationSummaryclassPasses, failures, cost and latency of one version over the set.
AiAgentGuardrailsclassWhere the safety hooks (AI-11) look. Both default to on.
AiAgentGuardrailsMergePatchUpdateOrCreateclassWhere the safety hooks (AI-11) look. Both default to on.
AiAgentGuardrailsMergePatchUpdateOrCreate_inputMember1class
AiAgentGuardrailsMergePatchUpdateOrCreate_outputMember1class
AiAgentMergePatchUpdateclassOne agent: a definition, versioned. Every change of the definition writes a new immutable version.
AiAgentMergePatchUpdate_approveRiskyMember1class
AiAgentMergePatchUpdate_callsPerMinuteMember1class
AiAgentMergePatchUpdate_descriptionMember1class
AiAgentMergePatchUpdate_displayNameMember1class
AiAgentMergePatchUpdate_maxOutputTokensMember1class
AiAgentMergePatchUpdate_maxStepsMember1class
AiAgentMergePatchUpdate_policyMember1class
AiAgentMergePatchUpdate_riskCeilingMember1class
AiAgentMergePatchUpdate_temperatureMember1class
AiAgentMergePatchUpdate_toolAllowListMember1class
AiAgentMergePatchUpdate_toolsMember1class
AiAgentRunclassOne conversation with one version of an agent. Its input, answer and steps are project data: size-capped, redacted of secret-looking values, and erased with the run.
AiAgentRunStateenumThe state of a run.
AiAgentRun_labelsclassAt most 64.
AiAgentStateenumWhether the agent may start runs.
AiAgentStepclassOne step of a run: a model call or a tool call, recorded before it ran.
AiAgentToolclassOne tool the agent can draw on.
AiAgentToolCatalogueclassThe tools a project's agents can draw on: the platform's tool groups and the registered tool servers' discovered tools.
AiAgentToolServerclassA customer MCP server (HTTPS) that agents of the project may use as a tool set.
AiAgentToolServerMergePatchUpdateclassA customer MCP server (HTTPS) that agents of the project may use as a tool set.
AiAgentToolServerMergePatchUpdate_authSecretMember1class
AiAgentToolServerMergePatchUpdate_displayNameMember1class
AiAgentToolServerMergePatchUpdate_riskMember1class
AiAgentToolServer_labelsclassAt most 64.
AiAgentVersionclassOne stored version of an agent; versions are never changed.
AiAgent_labelsclassAt most 64.
ApproveAiAgentCallRequestclassAccepts a plan.
EvaluateAiAgentRequestclassStarts an evaluation: one run per case, one after another, against the agent's own budgets (a case that needs a human fails with `approval-required`).
RejectAiAgentCallRequestclassRefuses a plan.
RollbackAiAgentRequestclassWrites a new version with the definition of an earlier one.
RunAiAgentRequestclassStarts a run.
RunAiAgentRequest_labelsclassAt most 64.
ValidateAiAgentRequestclassWhat `:validate` says about a definition.
ValidateAiAgentResponseclass