AgentPublishCheck
What a publish of the current draft would answer (1.58.0): the revision, whether it would pass, and the refusal, its details and the lint findings.
An object with 9 fields.
Fields
| Field | Type | Required | Description |
|---|---|---|---|
agent_id | AgentId | yes | |
draft_revision | integer | yes | The draft revision checked, which a publish names in If-Match. |
evaluation_gate | AgentEvaluationGate or null | no | The Agent's publish gate (1.63.0), null when its owner turned none on; it applies to a publish with activate. Absent from an api before 1.63.0. |
findings | array of PromptLintFinding | yes | Every lint finding of the template and its cross-checks against the Agent, warnings included, each with acknowledge when a publish needs it acknowledged; empty for an Agent with inline instructions. |
issues | array of ErrorDetail | yes | The details of that refusal, as the publish's 422 would list them; empty when publishable. |
object | "agent_publish_check" | yes | |
publishable | boolean | yes | True when a publish of this revision with these acknowledgements would pass. |
refusal | ErrorCode or null | yes | The code the publish would answer, validation_failed or capability_not_available, and from 1.63.0 evaluation_gate_failed for a gated Agent checked with activate; null when publishable. |
warnings | array of ErrorDetail | no | The warnings the publish found and did not refuse (1.59.0): the statechart warnings of StatechartWarningCode (slot_trust_warning, squad_setting_ignored, proposal_reaches_transfer), each with its pointer, computed over the Tools of the root Agent and of each squad Agent. Empty when none; absent from an api before 1.59.0, which a reader treats as none. |
Used by
The operations whose parameters, request body or responses name this shape directly.