VocalDocscontracts 1.65.0

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

FieldTypeRequiredDescription
agent_idAgentIdyes
draft_revisionintegeryesThe draft revision checked, which a publish names in If-Match.
evaluation_gateAgentEvaluationGate or nullnoThe 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.
findingsarray of PromptLintFindingyesEvery 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.
issuesarray of ErrorDetailyesThe details of that refusal, as the publish's 422 would list them; empty when publishable.
object"agent_publish_check"yes
publishablebooleanyesTrue when a publish of this revision with these acknowledgements would pass.
refusalErrorCode or nullyesThe 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.
warningsarray of ErrorDetailnoThe 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.