Skip to main content

Model Reference extra

Version: 1.9.0

contracts.BillableConsumption​

Inherits from: contracts.ContractModel

One billable quantity an agent used for a Studio job.

Model Fields​

FieldTypeDefaultDescription
skustrrequiredSKU declared in the agent billing_catalog.
quantityDecimalrequiredPositive quantity of unit, at most 18 digits with 6 decimal places; sent as a decimal string.
unitstrrequiredUnit of the quantity.
job_idstrrequiredStudio job the record bills.
case_idstrNoneStudio case, if any.
idempotency_keystrrequiredOne key per unit of work and SKU. Studio books a key once; a resend answers duplicate.
agent_cost_usdDecimalNoneOptional hint of what the agent paid, in USD. Not billed.
descriptionstrNoneShort plain text; no personal data.
occurred_atAwareDatetimerequiredWhen the consumption happened; timezone-aware ISO 8601.

contracts.ConsumptionReceipt​

Inherits from: contracts.ContractModel

Studio's answer for one record of a consumption report.

Model Fields​

FieldTypeDefaultDescription
idempotency_keystrrequired
statusLiteral['accepted', 'duplicate', 'rejected']requiredaccepted: booked. duplicate: the key was received before; nothing is booked again. rejected: final, do not resend.
reasonstrNoneWhy a record was rejected, such as unknown_sku.

common.SvBaseModel​

Base model for all Supervaize models.

No fields found.

telemetry.Telemetry​

Inherits from: telemetry.TelemetryModel

Base class for all telemetry data in the Supervaize Control system.

Telemetry represents monitoring and observability data sent from agents to the control system. This includes logs, metrics, events, traces, exceptions, diagnostics and custom telemetry.

Inherits from TelemetryModel which defines the core telemetry attributes:

  • agentId: The ID of the agent sending the telemetry
  • type: The TelemetryType enum indicating the telemetry category (logs, metrics, etc)
  • category: The TelemetryCategory enum for the functional area (system, application, etc)
  • severity: The TelemetrySeverity enum indicating importance (debug, info, warning, etc)
  • details: A dictionary containing telemetry-specific details

No additional fields beyond parent class.

contracts.ConsumptionReport​

Inherits from: contracts.ContractModel

Body of POST /w/<workspace>/api/v1/billing/consumption/.

Model Fields​

FieldTypeDefaultDescription
agent_slugstrrequiredSlug of the reporting agent.
recordslist[contracts.BillableConsumption]required

contracts.ConsumptionReportResponse​

Inherits from: contracts.ContractModel

Studio's answer to a consumption report: one receipt per record, in order.

Model Fields​

FieldTypeDefaultDescription
resultslist[contracts.ConsumptionReceipt]required

agent.AgentCustomMethodParams​

Inherits from: agent.AgentMethodParams

Model Fields​

FieldTypeDefaultDescription
method_namestrrequired

agent.AgentJobContextBase​

Base model for agent job context parameters

FieldTypeDefaultDescription
job_contextJobContextrequired
job_fieldsdict[str, Any]required

agent.AgentMethodParams​

Method parameters for agent operations.

FieldTypeDefaultDescription
paramsdict[str, Any]—A simple key-value dictionary of parameters what will be passed to the AgentMethod.method as kwargs

agent.AgentMethods​

Inherits from: agent.AgentMethodsAbstract

No additional fields beyond parent class.

agent.AgentMethodsAbstract​

A base class for creating Pydantic models.

FieldTypeDefaultDescription
job_startAgentMethodrequired
job_stopAgentMethodNone
job_statusAgentMethodNone
human_answerAgentMethodNone
chatAgentMethodNone
customdict[str, supervaizer.agent.AgentMethod]None

agent.AgentResponse​

Response model for agent endpoints - values provided by Agent.registration_info

FieldTypeDefaultDescription
namestrrequired
idstrrequired
authorstrNone
developerstrNone
maintainerstrNone
editorstrNone
versionstrrequired
release_notes_urlstrNone
api_pathstrrequired
descriptionstrrequired
tagslist[str]None
methodsAgentMethodsNone
parameters_setuplist[dict[str, typing.Any]]None
server_agent_idstrNone
server_agent_statusstrNone
server_agent_onboarding_statusstrNone

contracts.BillingCatalogItem​

Inherits from: contracts.ContractModel

One billable SKU an agent declares at registration.

The catalog carries no prices: the owner workspace prices each SKU in Studio.

Model Fields​

FieldTypeDefaultDescription
skustrrequiredSKU id: 1 to 64 lowercase letters, digits or underscores.
unitstrrequiredUnit one quantity counts, such as minute or token (1 to 32).
descriptionstr''Plain text shown with the SKU.

case.CaseNodes​

Inherits from: common.SvBaseModel

Model Fields​

FieldTypeDefaultDescription
nodeslist[case.CaseNode][]

data_resource.DataResource​

Inherits from: common.SvBaseModel

Declares a named data resource the agent exposes for Studio CRUD access.

The agent provides callback functions for each operation. The SDK generates the corresponding FastAPI routes automatically.

Example::

contacts_resource = DataResource( name="contacts", display_name="Contacts", fields=[ DataResourceField(name="id", editable=Editable.NEVER, visible_on=["list", "detail"]), DataResourceField(name="email", field_type=FieldType.EMAIL, required=True), ], on_list=lambda: repo.list_all(), on_get=lambda item_id: repo.get(item_id), on_create=lambda data: repo.create(data), on_update=lambda item_id, data: repo.update(item_id, data), on_delete=lambda item_id: repo.delete(item_id), )

Model Fields​

FieldTypeDefaultDescription
namestrrequiredURL-safe resource identifier, e.g. 'contacts'. Lowercase letters, digits, underscores, and hyphens only; must start with a letter or digit.
display_namestr''
descriptionstr''
fieldslist[data_resource.DataResourceField]—
read_onlyboolFalse
importableboolFalseEnables CSV bulk import route
scopeLiteral['workspace', 'mission', 'job']'workspace'Studio context boundary for this resource.
requires_contextlist[str]—Context keys Studio must send for resource access control.
on_listcollections.abc.Callable[..., list[dict[str, typing.Any]]]None
on_get`collections.abc.Callable[..., dict[str, typing.Any]None]`None
on_createcollections.abc.Callable[..., dict[str, typing.Any]]None
on_update`collections.abc.Callable[..., dict[str, typing.Any]None]`None
on_deletecollections.abc.Callable[..., bool]None
on_importcollections.abc.Callable[..., dict[str, typing.Any]]None

job.Job​

Inherits from: job.AbstractJob

Jobs are typically created by the platform and are not created by the agent.

Args: id (str): Unique identifier for the job - provided by the platform agent_name (str): Name (slug) of the agent running the job status (EntityStatus): Current status of the job job_context (JobContext): Context information for the job payload (Any, optional): Job payload data. Defaults to None result (Any, optional): Job result data. Defaults to None error (str, optional): Error message if job failed. Defaults to None responses (list[JobResponse], optional): List of job responses. Defaults to empty list finished_at (datetime, optional): When job completed. Defaults to None created_at (datetime, optional): When job was created. Defaults to None

No additional fields beyond parent class.

job.JobContext​

Inherits from: common.SvBaseModel

Model Fields​

FieldTypeDefaultDescription
workspace_idstrrequired
job_idstrrequired
started_bystrrequired
started_atdatetimerequired
mission_idstrrequired
mission_namestrrequired
mission_contextAnyNone
job_instructionsJobInstructionsNone

job.JobResponse​

Inherits from: common.SvBaseModel

Model Fields​

FieldTypeDefaultDescription
job_idstrrequired
status<enum 'EntityStatus'>required
messagestrrequired
payloaddict[str, typing.Any]None
error_messagestrNone
error_tracebackstrNone

event.JobStartConfirmationEvent​

Inherits from: event.Event

No additional fields beyond parent class.

contracts.SupervaizerV2AgentRegistrationContract​

Inherits from: contracts.ContractModel

Model Fields​

FieldTypeDefaultDescription
supervaizer_contract_versionLiteral[2]2
agentV2AgentIdentityrequired
versionsV2ProtocolVersionsrequired
a2aV2A2AControllerrequired
capabilitiesV2AgentCapabilities—
job_policyV2JobPolicy—
resourceslist[contracts.V2ResourceDefinition]—
datasetslist[contracts.V2DatasetDefinition]—
dashboardslist[contracts.V2DashboardDefinition]—
workspace_bindingV2WorkspaceBindingDefinitionNone

contracts.V2ActionDefinition​

Inherits from: contracts.ContractModel

Declared metadata for one invokable agent action.

Consumers authorize, group and filter actions from these fields. They must never be inferred from the identifier string: id is caller-supplied on invocation, so pattern-matching it turns an authorization decision into something the caller controls.

Model Fields​

FieldTypeDefaultDescription
idstrrequiredAction identifier used to invoke the action.
mutatingboolTrueWhether invoking the action changes agent-side state. Defaults to True so an undeclared action requires write permission.
scopeLiteral['workspace', 'mission', 'job']'job'Context the action operates within.
labelstrNoneShort caption a consumer may show instead of one derived from the id. Plain text; display only, never an authorization input.
descriptionstrNoneOne or two plain-language sentences a consumer may show as help text, such as a tooltip. Plain text; display only, never an authorization input.
kindLiteral['command', 'help']'command'help actions propose or check a draft for target_field and must declare mutating=False. Omitted when command.
target_fieldstrNoneSetup field id whose draft a help action result fills.
dry_runboolFalseTest run defined by outcome: may create temporary agent-side data and incur model cost, never sends external communication and never appears in results or sync counts. Omitted when False.

contracts.V2ActionRequest​

Inherits from: contracts.ContractModel

Model Fields​

FieldTypeDefaultDescription
request_idstrrequired
actorV2ActorContextrequired
workspaceV2WorkspaceContextrequired
mission_idstrrequired
agent_slugstrrequired
surfacestrrequired
actionstrrequired
inputdict[str, Any]—
idempotency_keystrNone
draft_session_idstrNone
job_idstrNone
case_idstrNone
step_idstrNone
missionV2MissionContextNone
workspace_authorizationV2VerifiedWorkspaceContextNone

contracts.V2AgentFullDescription​

Inherits from: contracts.ContractModel

Long-form description a consumer shows on the agent detail page.

The SDK only types and bounds the content. The consumer sanitizes HTML (and the HTML it renders from markdown) before display.

Model Fields​

FieldTypeDefaultDescription
formatLiteral['markdown', 'html']'markdown'Markup of content.
contentstrrequiredMarkdown or HTML body, 1 to 100,000 characters, not whitespace only. Not sanitized by the SDK; the consumer sanitizes it.

contracts.V2AgentIntroduction​

Inherits from: contracts.ContractModel

Plain-text roster block a consumer renders before any job exists.

Model Fields​

FieldTypeDefaultDescription
taglinestrrequired
summarystrrequiredWhat the agent does, in one or two sentences.
example_goalslist[str]requiredSuggested first requests a consumer may offer verbatim.
avatar_urlstrNone

contracts.V2AgentMethod​

Inherits from: contracts.ContractModel

Model Fields​

FieldTypeDefaultDescription
methodstrrequired
paramsdict[str, Any]—
descriptionstrNone
is_asyncboolFalse
timeoutint600

contracts.V2AgentMethods​

Inherits from: contracts.ContractModel

Model Fields​

FieldTypeDefaultDescription
refreshV2AgentMethodNone
customdict[str, contracts.V2AgentMethod]—

case.Case​

Inherits from: case.CaseAbstractModel

No additional fields beyond parent class.

case.CaseAbstractModel​

Inherits from: common.SvBaseModel

Model Fields​

FieldTypeDefaultDescription
idstrrequired
job_idstrrequired
namestrrequired
accountForwardRef('Account')required
descriptionstrrequired
status<enum 'EntityStatus'>required
updateslist[case.CaseNodeUpdate][]
total_costfloat0.0
final_deliverydict[str, typing.Any]None
finished_atdatetimeNone
metadatadict[str, Any]—Agent-provided domain metadata (e.g. contact context)

case.CaseNode​

Inherits from: common.SvBaseModel

Model Fields​

FieldTypeDefaultDescription
namestrrequired
type<enum 'CaseNodeType'>required
factoryAnyNone
descriptionstr''
can_be_confirmedboolFalse

case.CaseNodeUpdate​

Inherits from: common.SvBaseModel

CaseNodeUpdate is a class that represents an update to a case node.

Returns: CaseNodeUpdate: CaseNodeUpdate object

Model Fields​

FieldTypeDefaultDescription
indexintNone
costfloatNone
namestrNone
payloaddict[str, typing.Any]None
is_finalboolFalse
upsertboolFalse
errorstrNone
scheduled_atdatetimeNone
scheduled_methodstrNone
scheduled_paramsdict[str, typing.Any]None
scheduled_statusstrNone

context.ContextCitation​

Inherits from: common.SvBaseModel

Model Fields​

FieldTypeDefaultDescription
refstrrequired
titlestrrequired
source_typestrrequired
versionintrequired

context.ContextOpenResponse​

Inherits from: common.SvBaseModel

Model Fields​

FieldTypeDefaultDescription
refstrrequired
titlestrrequired
scopeLiteral['workspace', 'mission']required
source_typestrrequired
versionintrequired
instructionsstr''
tagslist[str]—
contentstrrequired
citationslist[context.ContextCitation]—

context.ContextSearchResponse​

Inherits from: common.SvBaseModel

Model Fields​

FieldTypeDefaultDescription
querystrrequired
resultslist[context.ContextSearchResult]—

context.ContextSearchResult​

Inherits from: common.SvBaseModel

Model Fields​

FieldTypeDefaultDescription
refstrrequired
titlestrrequired
scopeLiteral['workspace', 'mission']required
source_typestrrequired
versionintrequired
tagslist[str]—
excerptstr''
scoreint0
citationContextCitationNone

contracts.AgentMethodContract​

Inherits from: contracts.ContractModel

Model Fields​

FieldTypeDefaultDescription
namestrrequired
methodstrrequired
paramsdict[str, typing.Any]None
fields`list[supervaizer.contracts.AgentMethodFieldContractdict[str, typing.Any]]`None
descriptionstrNone
is_asyncboolFalse
timeoutint600
nodesdict[str, typing.Any]None

contracts.AgentMethodFieldContract​

Inherits from: contracts.ContractModel

Model Fields​

FieldTypeDefaultDescription
namestrrequired
typestrNone
field_typestr'CharField'
descriptionstrNone
choiceslist[typing.Any]None
defaultAnyNone
widgetstrNone
requiredboolFalse

contracts.AgentMethodsContract​

Inherits from: contracts.ContractModel

Model Fields​

FieldTypeDefaultDescription
job_startAgentMethodContractrequired
job_stopAgentMethodContractNone
job_statusAgentMethodContractNone
human_answerAgentMethodContractNone
chatAgentMethodContractNone
customdict[str, supervaizer.contracts.AgentMethodContract]None

contracts.AgentRegistrationContract​

Inherits from: contracts.ContractModel

Minimal schema for agent registration payloads consumed by Studio.

Model Fields​

FieldTypeDefaultDescription
idstrNone
slugstrrequired
namestrrequired
api_pathstrrequired
release_notes_urlstrNone
methodsAgentMethodsContract | dict[str, typing.Any]—
parameters_setuplist[dict[str, Any]]—
data_resources`list[contracts.DataResourceContractdict[str, Any]]`—
introduction`ForwardRef('V2AgentIntroductionNone')`None
full_description`ForwardRef('V2AgentFullDescriptionNone')`None
billing_catalog`ForwardRef('list[BillingCatalogItem]None')`None

contracts.CaseUpdateEvent​

Inherits from: contracts.ContractModel

Model Fields​

FieldTypeDefaultDescription
namestrrequired
payloaddict[str, Any]—
costfloat0.0
indexintNone
is_finalboolFalse

contracts.CaseUpdateRequest​

Inherits from: contracts.ContractModel

Model Fields​

FieldTypeDefaultDescription
answerdict[str, Any]required
messagestrNone

contracts.ContractModel​

Base class for SDK-owned wire contract models.

No fields found.

contracts.ControllerContract​

Inherits from: contracts.ContractModel

Canonical controller surface advertised by a Supervaizer server.

Model Fields​

FieldTypeDefaultDescription
controller_contract_versionstr'1.0'
api_base_pathstr'/api'
endpointsdict[str, str]—

contracts.DataResourceContextContract​

Inherits from: contracts.ContractModel

Model Fields​

FieldTypeDefaultDescription
workspace_idstrNone
workspace_slugstrNone
mission_idstrNone
missionV2MissionContextNone
agent_slugstrNone
request_idstrNone

contracts.DataResourceContract​

Inherits from: contracts.ContractModel

Model Fields​

FieldTypeDefaultDescription
namestrrequired
display_namestrrequired
descriptionstr''
fieldslist[contracts.DataResourceFieldContract]—
read_onlyboolFalse
importableboolFalse
operationsdict[str, bool]—
scopeLiteral['workspace', 'mission', 'job']'workspace'
requires_contextlist[str]—

contracts.DataResourceFieldContract​

Inherits from: contracts.ContractModel

Model Fields​

FieldTypeDefaultDescription
namestrrequired
field_typestr'string'
labelstrNone
requiredboolFalse
editablestr'always'
visible_onlist[str]—
descriptionstrNone
related_resourcestrNone
sensitiveboolFalse
display_labelstrNone

contracts.DataResourceListResponse​

Inherits from: contracts.ContractModel

Structured response shape for DataResource list operations.

Model Fields​

FieldTypeDefaultDescription
itemslist[dict[str, Any]]—

contracts.JobStartRequest​

Inherits from: contracts.ContractModel

Model Fields​

FieldTypeDefaultDescription
job_contextdict[str, Any]required
job_fieldsdict[str, Any]—
encrypted_agent_parametersstrNone
rule_snapshot`ForwardRef('RuleCheckpointSnapshotNone')`None

contracts.RuleCheckpointRequest​

Inherits from: contracts.ContractModel

Model Fields​

FieldTypeDefaultDescription
occurrence_idstrrequired
phaseLiteral['before', 'after']required
snapshot_hashstrrequired
job_idstrrequired
case_idstrrequired
step_idstrrequired
contextdict[str, Any]required
secret_refslist[str]—

contracts.RuleCheckpointResponse​

Inherits from: contracts.ContractModel

Model Fields​

FieldTypeDefaultDescription
checkpoint_idstrrequired
statusLiteral['allow', 'pause', 'stop']required
snapshot_hashstrrequired
input_hashstrrequired

contracts.RuleCheckpointResume​

Inherits from: contracts.ContractModel

Model Fields​

FieldTypeDefaultDescription
checkpoint_idstrrequired
job_idstrrequired
case_idstrrequired
agent_slugstrrequired
occurrence_idstrrequired
phaseLiteral['before', 'after']required
statusLiteral['allow', 'stop']required
snapshot_hashstrrequired
input_hashstrrequired
decision_idstrrequired

contracts.RuleCheckpointSnapshot​

Inherits from: contracts.ContractModel

Opaque frozen rule snapshot supplied by Studio for one governed job.

Model Fields​

FieldTypeDefaultDescription
hashstrrequired
checkpoint_urlstrrequired
versionLiteral[1]required
checkpoint_tokenstrrequired

contracts.ServerRegistrationContract​

Inherits from: contracts.ControllerContract

Minimal schema for server.register details.

Model Fields​

FieldTypeDefaultDescription
server_idstrrequired
urlstrrequired
uristrrequired
api_versionstrrequired
controller_versionstrNone
environmentstrNone
agentslist[contracts.AgentRegistrationContract]—

contracts.V2A2AController​

Inherits from: contracts.ContractModel

Model Fields​

FieldTypeDefaultDescription
agent_card_urlstrrequired
controller_urlstrrequired
transportV2A2ATransport—
external_interopV2A2AExternalInterop—

contracts.V2A2AExternalInterop​

Inherits from: contracts.ContractModel

Model Fields​

FieldTypeDefaultDescription
inbound_tasksboolFalse
outbound_delegationboolFalse

contracts.V2A2ATransport​

Inherits from: contracts.ContractModel

Model Fields​

FieldTypeDefaultDescription
json_rpcboolTrue
sseboolTrue
push_notificationsboolFalse

contracts.V2A2UIResourceImportColumn​

Inherits from: contracts.ContractModel

Model Fields​

FieldTypeDefaultDescription
idstrrequired
labelstrNone
typestr'string'
requiredboolFalse

contracts.V2A2UIResourceImportDocument​

Inherits from: contracts.ContractModel

A2UI-shaped resource import surface consumed by Studio.

Model Fields​

FieldTypeDefaultDescription
typeLiteral['ResourceImport']'ResourceImport'
idstrrequired
titlestrrequired
resourcestrrequired
accepted_formatslist[Literal['csv', 'xlsx']]—
fieldslist[contracts.V2ResourceFieldDefinition]—
columnslist[contracts.V2A2UIResourceImportColumn]—
submitV2A2UISubmitDefinitionrequired
statedict[str, Any]—

contracts.V2A2UISubmitDefinition​

Inherits from: contracts.ContractModel

Model Fields​

FieldTypeDefaultDescription
actionstrrequired
labelstrNone

contracts.V2ActionResult​

Inherits from: contracts.ContractModel

Model Fields​

FieldTypeDefaultDescription
statusLiteral['ok', 'error']required
effectslist[contracts.V2Effect]—
job_state`ForwardRef('V2JobStateSnapshotNone')`None
replay_safetyV2ReplaySafetyMetadataNone
setup_plandict[str, typing.Any] | V2SetupPlanNone
draftV2FieldDraftNone
dry_runV2DryRunOutcomeNone

contracts.V2ActorContext​

Inherits from: contracts.ContractModel

Model Fields​

FieldTypeDefaultDescription
user_idstrrequired

contracts.V2AgentCapabilities​

Inherits from: contracts.ContractModel

Model Fields​

FieldTypeDefaultDescription
surfaceslist[str]—
surface_definitionslist[contracts.V2SurfaceDefinition]—Display text for declared surfaces, at most one per id. Omitted from the serialized registration when empty.
actionslist[contracts.V2ActionDefinition]—
case_laneslist[contracts.V2CaseLaneDefinition]—
artifact_typeslist[contracts.V2ArtifactTypeDefinition]—
rule_checkpoints`ForwardRef('V2RuleCheckpointCapabilityNone')`None
scheduled_startboolFalse

contracts.V2AgentIdentity​

Inherits from: contracts.ContractModel

Model Fields​

FieldTypeDefaultDescription
idstrrequired
slugstrrequired
display_namestrrequired

contracts.V2ArtifactRef​

Inherits from: contracts.ContractModel

Model Fields​

FieldTypeDefaultDescription
idstrrequired
typestrrequired
titlestrNone
external_idstrNone
media_typestrNone

contracts.V2ArtifactTypeDefinition​

Inherits from: contracts.ContractModel

Model Fields​

FieldTypeDefaultDescription
typestrrequired
labelstrrequired
renderer_surfacestrNone

contracts.V2AwaitingFieldDefinition​

Inherits from: contracts.ContractModel

Model Fields​

FieldTypeDefaultDescription
idstrrequired
labelstrrequired
typestr'boolean'
requiredboolFalse
item_fieldslist[supervaizer.contracts.V2SetupFieldDefinition]None
defaultAnyNone
descriptionstrNone
placeholderstrNone
multilineboolFalse
min_rowsintNone
optionslist[supervaizer.contracts.V2FieldOption]None
options_sourceV2ResourceFieldOptionsSourceNone
depends_onV2FieldDependsOnNone
validationV2FieldValidationNone

contracts.V2AwaitingState​

Inherits from: contracts.ContractModel

Model Fields​

FieldTypeDefaultDescription
reasonstrrequired
surfacestrrequired
actionstrrequired
fieldslist[contracts.V2AwaitingFieldDefinition]—
reopenableboolFalseWhether an already-answered step may be reopened and resubmitted with edited values.

contracts.V2CaseLaneDefinition​

Inherits from: contracts.ContractModel

Model Fields​

FieldTypeDefaultDescription
idstrrequired
labelstrrequired
defaultboolFalse

contracts.V2CaseSnapshot​

Inherits from: contracts.ContractModel

Model Fields​

FieldTypeDefaultDescription
idstrrequired
lanestr'work'
titlestrNone
statusstrNone
external_idstrNone
metadatadict[str, Any]—
stepslist[contracts.V2StepSnapshot]—

contracts.V2ContextAssignment​

Inherits from: contracts.ContractModel

Model Fields​

FieldTypeDefaultDescription
itemslist[contracts.V2ContextAssignmentItem]required
mission_idstrNone
job_idstrrequired
assigned_atstrrequired

contracts.V2ContextAssignmentItem​

Inherits from: contracts.ContractModel

Model Fields​

FieldTypeDefaultDescription
refstrrequired
versionintrequired
scopeLiteral['workspace', 'mission']required
titlestrrequired

contracts.V2CostEstimate​

Inherits from: contracts.ContractModel

A cost range or an explicit unknown, never a single number.

Model Fields​

FieldTypeDefaultDescription
statusLiteral['estimated', 'unknown']required
unitstrNoneFree label shown verbatim, such as USD, tokens or credits.
minfloatNone
maxfloatNone
basisstrNonePlain text, for example 'for 50 responses'.

contracts.V2DashboardDefinition​

Inherits from: contracts.ContractModel

Model Fields​

FieldTypeDefaultDescription
idstrrequired
labelstrrequired
surfacestr'mission.analytics'
widgetslist[contracts.V2DashboardWidgetDefinition]—

contracts.V2DashboardWidgetDataRef​

Inherits from: contracts.ContractModel

Model Fields​

FieldTypeDefaultDescription
modeLiteral['ref', 'action', 'inline']'ref'
datasetIdstrNone
actionstrNone
inputdict[str, Any]—
valueslist[dict[str, typing.Any]] | dict[str, typing.Any]None

contracts.V2DashboardWidgetDefinition​

Inherits from: contracts.ContractModel

Model Fields​

FieldTypeDefaultDescription
idstrrequired
titlestrrequired
dataV2DashboardWidgetDataRefNone
layoutdict[str, Any]—
visualizationV2DashboardWidgetVisualization—

contracts.V2DashboardWidgetVisualization​

Inherits from: contracts.ContractModel

Model Fields​

FieldTypeDefaultDescription
typeLiteral['table', 'metric', 'vega-lite', 'custom']'table'
specdict[str, typing.Any]None

contracts.V2DatasetDefinition​

Inherits from: contracts.ContractModel

Model Fields​

FieldTypeDefaultDescription
idstrrequired
labelstrrequired
auto_surfaceboolFalse
scopeLiteral['workspace', 'mission', 'job']'workspace'
displayV2ResourceDisplayDefinitionNone

contracts.V2DryRunOutcome​

Inherits from: contracts.ContractModel

What a dry-run action left behind.

Model Fields​

FieldTypeDefaultDescription
expires_atdatetimeNone
deletableboolrequired
cost_incurredV2CostEstimateNone

contracts.V2Effect​

Inherits from: contracts.ContractModel

Model Fields​

FieldTypeDefaultDescription
typestrrequired
job_idstrNone
case_idstrNone
step_idstrNone
resourcestrNone
datasetstrNone
artifact_idstrNone
statusstrNone
messagestrNone
countintNone
itemdict[str, typing.Any]None
itemslist[dict[str, typing.Any]]None
rowslist[dict[str, typing.Any]]None
errorslist[dict[str, typing.Any]]None
gapslist[dict[str, typing.Any]]None
summarydict[str, typing.Any]None
casedict[str, typing.Any]None
datadict[str, typing.Any]None

contracts.V2FieldDependsOn​

Inherits from: contracts.ContractModel

Activate a field only while a parent field holds one of the listed values.

Model Fields​

FieldTypeDefaultDescription
fieldstrrequiredParent field id; parents may chain.
in_list[str]requiredStringified parent values that activate this field.

contracts.V2FieldDraft​

Inherits from: contracts.ContractModel

Help-action output: a proposed value for one setup field, never auto-applied.

Model Fields​

FieldTypeDefaultDescription
fieldstrrequiredTarget setup field id.
valueAnyNoneProposed value; None for a validate-only result.
suggestionslist[contracts.V2Suggestion]—

contracts.V2FieldOption​

Inherits from: contracts.ContractModel

One selectable choice. Bare strings are rejected so labels stay explicit.

Model Fields​

FieldTypeDefaultDescription
valuestrrequired
labelstrrequired

contracts.V2FieldValidation​

Inherits from: contracts.ContractModel

Rules a consumer enforces before submit. Each rule must fit the field type.

Model Fields​

FieldTypeDefaultDescription
min_lengthintNone
max_lengthintNone
patternstrNoneRegular expression, ECMAScript-safe subset.
minfloatNone
maxfloatNone
min_itemsintNone
max_itemsintNone
messagestrNoneShown instead of the generic validation error.

contracts.V2JobPolicy​

Inherits from: contracts.ContractModel

Model Fields​

FieldTypeDefaultDescription
default_timeout_secondsintNone
offline_start_policyLiteral['block']'block'
offline_running_policyLiteral['fail_in_studio']'fail_in_studio'
syncV2JobSyncPolicyNone
setupV2JobSetupPolicyNone

contracts.V2JobSetupPolicy​

Inherits from: contracts.ContractModel

Generic agent-declared job setup actions.

Model Fields​

FieldTypeDefaultDescription
preview_actionstr'job.start.preview'
start_actionstr'job.start'
submit_actionstr'step.awaiting.submit'
action_scopeslist[Literal['workspace', 'job', 'case', 'step']]—
plan`ForwardRef('dict[str, Any]V2SetupPlanNone')`

contracts.V2JobSnapshot​

Inherits from: contracts.ContractModel

Model Fields​

FieldTypeDefaultDescription
idstrrequired
agent_slugstrrequired
mission_idstrrequired
statusstrrequired
sourceV2JobSourcerequired

contracts.V2JobSource​

Inherits from: contracts.ContractModel

Model Fields​

FieldTypeDefaultDescription
typeLiteral['fresh_start', 'external']required
external_refstrNone
previous_job_idstrNone
target_typestrNoneAgent-declared business object type for external sources (e.g. project). Open vocabulary unlike protocol-fixed fields such as step activity.

contracts.V2JobStateSnapshot​

Inherits from: contracts.ContractModel

Model Fields​

FieldTypeDefaultDescription
jobV2JobSnapshotrequired
caseslist[contracts.V2CaseSnapshot]—

contracts.V2JobSyncPolicy​

Inherits from: contracts.ContractModel

Model Fields​

FieldTypeDefaultDescription
actionstr'job.sync'
supported_statuseslist[str]—

contracts.V2JobSyncResult​

Inherits from: contracts.V2ActionResult

Model Fields​

FieldTypeDefaultDescription
external_refstrNone
external_versionstrNone
sync_cursorstrNone
observed_atstrNone

contracts.V2MissionContext​

Inherits from: contracts.ContractModel

Studio mission sent with a request. The SDK does not read metadata keys.

Model Fields​

FieldTypeDefaultDescription
idstrrequired
namestrNone
metadatadict[str, Any]—

contracts.V2MountedResourceViewDefinition​

Inherits from: contracts.ContractModel

Agent override that mounts an A2UI surface on a full resource view.

Model Fields​

FieldTypeDefaultDescription
viewstrrequiredGenerated resource view replaced by the mount (e.g. import, edit).
surfacestrrequiredRegistered A2UI surface id served for this resource view.

contracts.V2ProtocolVersions​

Inherits from: contracts.ContractModel

Model Fields​

FieldTypeDefaultDescription
a2ui_versionstrrequired
a2ui_catalog_versionstrrequired
a2a_versionstrrequired
ag_ui_versionstrNone

contracts.V2ReplaySafetyMetadata​

Inherits from: contracts.ContractModel

Model Fields​

FieldTypeDefaultDescription
dedupe_keyslist[str]—
stable_external_ids_requiredboolTrue
strictly_idempotent_responseboolFalse
convergentboolTrue

contracts.V2ResourceDefinition​

Inherits from: contracts.ContractModel

Model Fields​

FieldTypeDefaultDescription
idstrrequired
labelstrrequired
auto_surfaceboolFalse
scopeLiteral['workspace', 'mission', 'job']'workspace'
requires_contextlist[str]—
operationslist[str]—
displayV2ResourceDisplayDefinitionNone
fieldslist[contracts.V2ResourceFieldDefinition]—
mounted_viewslist[contracts.V2MountedResourceViewDefinition]—

contracts.V2ResourceDisplayDefinition​

Inherits from: contracts.ContractModel

Model Fields​

FieldTypeDefaultDescription
title_fieldstrNone
columnslist[str]—
search_fieldslist[str]—

contracts.V2ResourceFieldDefinition​

Inherits from: contracts.ContractModel

Model Fields​

FieldTypeDefaultDescription
idstrrequired
labelstrrequired
typestr'string'
requiredboolFalse
read_onlyboolFalse
multilineboolFalse
options_sourceV2ResourceFieldOptionsSourceNone
item_fieldslist[supervaizer.contracts.V2SetupFieldDefinition]None
defaultAnyNone
descriptionstrNone
placeholderstrNone
min_rowsintNone
optionslist[supervaizer.contracts.V2FieldOption]None
depends_onV2FieldDependsOnNone
validationV2FieldValidationNone

contracts.V2ResourceFieldOptionsSource​

Inherits from: contracts.ContractModel

Model Fields​

FieldTypeDefaultDescription
typeLiteral['resource']'resource'
resourcestrrequired
value_fieldstr'id'
label_fieldstrNone

contracts.V2RuleCheckpointCapability​

Inherits from: contracts.ContractModel

Opt-in support for Studio before/after rule checkpoints.

Model Fields​

FieldTypeDefaultDescription
versionLiteral[1]1
phaseslist[Literal['before', 'after']]required
secret_refslist[str]—

contracts.V2SetupFieldDefinition​

Inherits from: contracts.ContractModel

One input a consumer renders during guided setup.

Known types: string, text, boolean, integer, number, date, select, multi_select, resource_ref, file, list. Unknown types render as string. A list field declares item_fields (one nesting level) and its value is a list of dicts keyed by item field id, never free text.

Model Fields​

FieldTypeDefaultDescription
idstrrequired
labelstrrequired
typestr'string'
item_fieldslist[supervaizer.contracts.V2SetupFieldDefinition]None
requiredboolFalse
defaultAnyNone
descriptionstrNone
placeholderstrNone
multilineboolFalse
min_rowsintNone
optionslist[supervaizer.contracts.V2FieldOption]None
options_sourceV2ResourceFieldOptionsSourceNone
depends_onV2FieldDependsOnNone
validationV2FieldValidationNone

contracts.V2SetupPlan​

Inherits from: contracts.ContractModel

Typed setup plan; serializes to confirmation_required and steps[].

Model Fields​

FieldTypeDefaultDescription
confirmation_requiredboolTrue
stepslist[contracts.V2SetupStep]—
cost_estimateV2CostEstimateNone

contracts.V2SetupStep​

Inherits from: contracts.ContractModel

Model Fields​

FieldTypeDefaultDescription
idstrrequired
titlestrrequired
descriptionstrNone
statusLiteral['pending', 'awaiting', 'done', 'skipped']'pending'
fieldslist[contracts.V2SetupFieldDefinition]—
help_actionslist[str]—Ids of actions declared with kind='help' in the registration.

contracts.V2StepSnapshot​

Inherits from: contracts.ContractModel

Model Fields​

FieldTypeDefaultDescription
idstrrequired
activityLiteral['operation', 'delegation']required
statusstrrequired
titlestrNone
external_idstrNone
awaitingV2AwaitingStateNone
outputslist[contracts.V2ArtifactRef]—

contracts.V2Suggestion​

Inherits from: contracts.ContractModel

Model Fields​

FieldTypeDefaultDescription
messagestrrequired
severityLiteral['info', 'warning', 'error']required
fieldstrNone
proposed_valueAnyNone

contracts.V2SurfaceDefinition​

Inherits from: contracts.ContractModel

Display text for one declared surface.

capabilities.surfaces stays a list of ids, so consumers keep matching surfaces by string; a definition only adds human-readable text for one of those ids.

Model Fields​

FieldTypeDefaultDescription
idstrrequiredSurface id, as listed in capabilities.surfaces.
labelstrNoneShort caption a consumer may show instead of one derived from the id. Plain text; display only, never an authorization input.
descriptionstrNoneOne or two plain-language sentences a consumer may show as help text, such as a tooltip. Plain text; display only, never an authorization input.

contracts.V2SurfaceRequest​

Inherits from: contracts.ContractModel

Model Fields​

FieldTypeDefaultDescription
request_idstrrequired
actorV2ActorContextrequired
workspaceV2WorkspaceContextrequired
mission_idstrrequired
agent_slugstrrequired
surfacestrrequired
inputdict[str, Any]—
draft_session_idstrNone
job_idstrNone
case_idstrNone
step_idstrNone
missionV2MissionContextNone
workspace_authorizationV2VerifiedWorkspaceContextNone

contracts.V2SurfaceResult​

Inherits from: contracts.ContractModel

Model Fields​

FieldTypeDefaultDescription
surfacestrrequired
a2ui_versionstrNone
a2ui_catalog_versionstrNone
documentdict[str, Any]—

contracts.V2VerifiedWorkspaceContext​

Inherits from: contracts.ContractModel

Model Fields​

FieldTypeDefaultDescription
grant_idstrrequired
workspace_idstrrequired
workspace_slugstrNone
agent_idstrrequired
agent_slugstrrequired
server_idstrrequired
scopeslist[str]—
agent_workspace_refstrNone

contracts.V2WorkspaceAuthorizationSettings​

Inherits from: contracts.ContractModel

Model Fields​

FieldTypeDefaultDescription
enabledboolFalse
issuerstrNone
audiencestrNone
public_key_pemstrNone
jwks_urlstrNone
leeway_secondsint30

contracts.V2WorkspaceBindingCreateDefinition​

Inherits from: contracts.ContractModel

Model Fields​

FieldTypeDefaultDescription
surfacestr'workspace_binding.create'
actionstr'workspace_binding.create'
fieldslist[contracts.V2ResourceFieldDefinition]—

contracts.V2WorkspaceBindingDefinition​

Inherits from: contracts.ContractModel

Model Fields​

FieldTypeDefaultDescription
requiredboolFalse
modeslist[Literal['bind_existing', 'create_and_bind']]—
reference_labelstr'Agent workspace reference'
reference_helpstr'Select or create the agent-side record this Studio workspace may access.'
reference_placeholderstr'Example: workspace-prod'
existingV2WorkspaceBindingExistingDefinitionNone
createV2WorkspaceBindingCreateDefinitionNone

contracts.V2WorkspaceBindingExistingDefinition​

Inherits from: contracts.ContractModel

Model Fields​

FieldTypeDefaultDescription
actionstr'workspace_binding.options'
value_fieldstr'agent_workspace_ref'
label_fieldstr'display_name'

contracts.V2WorkspaceContext​

Inherits from: contracts.ContractModel

Model Fields​

FieldTypeDefaultDescription
idstrrequired
slugstrNone

data_resource.DataResourceContext​

Inherits from: common.SvBaseModel

Studio request context passed to DataResource callbacks.

Model Fields​

FieldTypeDefaultDescription
workspace_idstrNone
workspace_slugstrNone
mission_idstrNone
missionV2MissionContextNone
agent_slugstrrequired
request_idstrNone
workspace_authorizationV2VerifiedWorkspaceContextNone

data_resource.DataResourceField​

Inherits from: common.SvBaseModel

Describes a single field in a DataResource for Studio rendering.

Model Fields​

FieldTypeDefaultDescription
namestrrequiredColumn/attribute name
field_type<enum 'FieldType'>stringOne of: string, integer, boolean, date, datetime, text, email, url
labelstrNoneHuman-readable label; defaults to name.title()
requiredboolFalseRequired on create form
editable<enum 'Editable'>always
visible_onlist[str]—Views that render this field: list, detail, create, edit
descriptionstrNoneHelp text shown in Studio
related_resourcestrNoneName of another DataResource this field FK-references
sensitiveboolFalseTrue when Studio should mask this field for non-manager users

deploy.drivers.base.DeploymentPlan​

Deployment plan containing all actions to be taken.

FieldTypeDefaultDescription
platformstrrequired
service_namestrrequired
environmentstrrequired
regionstrrequired
project_idstrNone
actionslist[deploy.drivers.base.ResourceAction][]
total_cost_estimatestrNone
estimated_durationstrNone
current_imagestrNone
current_urlstrNone
current_statusstrNone
target_imagestrrequired
target_portint8000
target_env_varsdict[str, str]
target_secretsdict[str, str]

deploy.drivers.base.DeploymentResult​

Result of a deployment operation.

FieldTypeDefaultDescription
successboolrequired
service_urlstrNone
service_idstrNone
revisionstrNone
image_digeststrNone
statusstr'unknown'
health_statusstr'unknown'
deployment_timefloatNone
error_messagestrNone
error_detailsdict[str, typing.Any]None

deploy.state.DeploymentState​

Deployment state model.

FieldTypeDefaultDescription
versionint2State file format version
service_namestrrequiredName of the deployed service
platformstrrequiredTarget platform (cloud-run
environmentstrrequiredEnvironment (dev
regionstrrequiredProvider region
project_idstrNoneGCP project / AWS account / DO project
image_tagstrrequiredDocker image tag
image_digeststrNoneDocker image digest
service_urlstrNonePublic service URL
revisionstrNoneService revision/version
created_atdatetime—Deployment creation time
updated_atdatetime—Last update time
statusstr'unknown'Deployment status
health_statusstr'unknown'Health check status
portint8000Application port
api_key_generatedboolFalseWhether API key was generated
rsa_key_generatedboolFalseWhether RSA key was generated
provider_datadict[str, Any]—Platform-specific data

deploy.drivers.base.ResourceAction​

Represents an action to be taken on a resource.

FieldTypeDefaultDescription
resource_type<enum 'ResourceType'>required
action_type<enum 'ActionType'>required
resource_namestrrequired
descriptionstrrequired
cost_estimatestrNone
metadatadict[str, typing.Any]None

deploy.health.HealthCheckConfig​

Configuration for health check operations.

FieldTypeDefaultDescription
timeoutint60
max_retriesint5
base_delayfloat1.0
max_delayfloat30.0
backoff_multiplierfloat2.0
success_thresholdint1
endpointslist[str]None

deploy.health.HealthCheckResult​

Result of a health check operation.

FieldTypeDefaultDescription
status<enum 'HealthStatus'>required
response_timefloatrequired
status_codeintNone
error_messagestrNone
endpointstrNone
timestampfloat0.0

event.AbstractEvent​

Inherits from: common.SvBaseModel

Model Fields​

FieldTypeDefaultDescription
sourcedict[str, Any]required
accountAnyrequired
type<enum 'EventType'>required
object_typestrrequired
detailsdict[str, Any]required

event.AgentRegisterEvent​

Inherits from: event.Event

Event sent when an agent registers with the control system.

Test in tests/test_agent_register_event.py

No additional fields beyond parent class.

event.CaseStartEvent​

Inherits from: event.Event

No additional fields beyond parent class.

event.CaseUpdateEvent​

Inherits from: event.Event

No additional fields beyond parent class.

event.Event​

Inherits from: event.AbstractEvent

Base class for all events in the Supervaize Control system.

Events represent messages sent from agents to the control system to communicate status, anomalies, deliverables and other information.

Inherits from AbstractEvent which defines the core event attributes:

  • source: The source/origin of the event (e.g. agent/server URI)
  • type: The EventType enum indicating the event category
  • account: The account that the event belongs to
  • details: A dictionary containing event-specific details

Tests in tests/test_event.py

No additional fields beyond parent class.

event.JobFinishedEvent​

Inherits from: event.Event

No additional fields beyond parent class.

event.ServerRegisterEvent​

Inherits from: event.Event

No additional fields beyond parent class.

job.AbstractJob​

Inherits from: common.SvBaseModel

Model Fields​

FieldTypeDefaultDescription
idstrrequired
namestrrequired
agent_namestrrequired
status<enum 'EntityStatus'>required
job_contextJobContextrequired
payloadAnyNone
resultAnyNone
errorstrNone
responseslist[job.JobResponse][]
finished_atdatetimeNone
created_atdatetimeNone
agent_parameterslist[dict[str, typing.Any]]None
case_idslist[str][]
metadatadict[str, Any]—Agent-provided domain metadata (e.g. source object context)

job.JobInstructions​

Inherits from: common.SvBaseModel

Model Fields​

FieldTypeDefaultDescription
max_casesintNone
max_durationintNone
max_costfloatNone
stop_on_warningboolFalse
stop_on_errorboolTrue
job_start_timefloatNone

protocol.a2a.controller.JsonRpcError​

Inherits from: contracts.ContractModel

Model Fields​

FieldTypeDefaultDescription
codeintrequired
messagestrrequired
datadict[str, typing.Any]None

protocol.a2a.controller.JsonRpcRequest​

Inherits from: contracts.ContractModel

Model Fields​

FieldTypeDefaultDescription
jsonrpcLiteral['2.0']'2.0'
idstr | intNone
methodstrrequired
paramsdict[str, Any]—

protocol.a2a.controller.JsonRpcResponse​

Inherits from: contracts.ContractModel

Model Fields​

FieldTypeDefaultDescription
jsonrpcLiteral['2.0']'2.0'
idstr | intNone
resultdict[str, typing.Any]None
errorJsonRpcErrorNone

routes.CaseUpdateRequest​

Inherits from: common.SvBaseModel

Request model for updating a case with answer to a question.

Model Fields​

FieldTypeDefaultDescription
answerdict[str, Any]required
messagestrNone

server_utils.ErrorResponse​

Standard error response model

FieldTypeDefaultDescription
errorstrrequired
error_type<enum 'ErrorType'>required
detailstrNone
timestampdatetimedatetime.datetime(2026, 10, 30, 9, 9, 43, 241638)
status_codeintrequired

routes.RegistrationRefreshRequest​

Inherits from: common.SvBaseModel

Request model for re-sending the server registration event.

Model Fields​

FieldTypeDefaultDescription
reasonstrNone
requested_atstrNone

server_info.ServerInfo​

Complete server information for storage.

FieldTypeDefaultDescription
idstr'server_instance'
hoststrrequired
portintrequired
api_versionstrrequired
environmentstrrequired
agentslist[dict[str, str]]required
start_timefloatrequired
created_atstrrequired
updated_atstrrequired

telemetry.TelemetryModel​

A base class for creating Pydantic models.

FieldTypeDefaultDescription
agentIdstrrequired
type<enum 'TelemetryType'>required
category<enum 'TelemetryCategory'>required
severity<enum 'TelemetrySeverity'>required
detailsdict[str, Any]required

workspace_authorization.WorkspaceAuthorizationClaims​

Inherits from: contracts.ContractModel

Model Fields​

FieldTypeDefaultDescription
issstrrequired
audstr | list[str]required
substrNone
grant_idstrrequired
workspace_idstrrequired
workspace_slugstrNone
agent_idstrrequired
agent_slugstrrequired
server_idstrrequired
scopeslist[str]—
agent_workspace_refstrNone
iatintNone
expintrequired
jtistrNone

Uploaded on 2026-10-30 09:09:43