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
| Field | Type | Default | Description |
|---|---|---|---|
sku | str | required | SKU declared in the agent billing_catalog. |
quantity | Decimal | required | Positive quantity of unit, at most 18 digits with 6 decimal places; sent as a decimal string. |
unit | str | required | Unit of the quantity. |
job_id | str | required | Studio job the record bills. |
case_id | str | None | Studio case, if any. |
idempotency_key | str | required | One key per unit of work and SKU. Studio books a key once; a resend answers duplicate. |
agent_cost_usd | Decimal | None | Optional hint of what the agent paid, in USD. Not billed. |
description | str | None | Short plain text; no personal data. |
occurred_at | AwareDatetime | required | When 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
| Field | Type | Default | Description |
|---|---|---|---|
idempotency_key | str | required | |
status | Literal['accepted', 'duplicate', 'rejected'] | required | accepted: booked. duplicate: the key was received before; nothing is booked again. rejected: final, do not resend. |
reason | str | None | Why 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
| Field | Type | Default | Description |
|---|---|---|---|
agent_slug | str | required | Slug of the reporting agent. |
records | list[contracts.BillableConsumption] | required |
contracts.ConsumptionReportResponse
Inherits from: contracts.ContractModel
Studio's answer to a consumption report: one receipt per record, in order.
Model Fields
| Field | Type | Default | Description |
|---|---|---|---|
results | list[contracts.ConsumptionReceipt] | required |
agent.AgentCustomMethodParams
Inherits from: agent.AgentMethodParams
Model Fields
| Field | Type | Default | Description |
|---|---|---|---|
method_name | str | required |
agent.AgentJobContextBase
Base model for agent job context parameters
| Field | Type | Default | Description |
|---|---|---|---|
job_context | JobContext | required | |
job_fields | dict[str, Any] | required |
agent.AgentMethodParams
Method parameters for agent operations.
| Field | Type | Default | Description |
|---|---|---|---|
params | dict[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.
| Field | Type | Default | Description |
|---|---|---|---|
job_start | AgentMethod | required | |
job_stop | AgentMethod | None | |
job_status | AgentMethod | None | |
human_answer | AgentMethod | None | |
chat | AgentMethod | None | |
custom | dict[str, supervaizer.agent.AgentMethod] | None |
agent.AgentResponse
Response model for agent endpoints - values provided by Agent.registration_info
| Field | Type | Default | Description |
|---|---|---|---|
name | str | required | |
id | str | required | |
author | str | None | |
developer | str | None | |
maintainer | str | None | |
editor | str | None | |
version | str | required | |
release_notes_url | str | None | |
api_path | str | required | |
description | str | required | |
tags | list[str] | None | |
methods | AgentMethods | None | |
parameters_setup | list[dict[str, typing.Any]] | None | |
server_agent_id | str | None | |
server_agent_status | str | None | |
server_agent_onboarding_status | str | None |
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
| Field | Type | Default | Description |
|---|---|---|---|
sku | str | required | SKU id: 1 to 64 lowercase letters, digits or underscores. |
unit | str | required | Unit one quantity counts, such as minute or token (1 to 32). |
description | str | '' | Plain text shown with the SKU. |
case.CaseNodes
Inherits from: common.SvBaseModel
Model Fields
| Field | Type | Default | Description |
|---|---|---|---|
nodes | list[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
| Field | Type | Default | Description |
|---|---|---|---|
name | str | required | URL-safe resource identifier, e.g. 'contacts'. Lowercase letters, digits, underscores, and hyphens only; must start with a letter or digit. |
display_name | str | '' | |
description | str | '' | |
fields | list[data_resource.DataResourceField] | — | |
read_only | bool | False | |
importable | bool | False | Enables CSV bulk import route |
scope | Literal['workspace', 'mission', 'job'] | 'workspace' | Studio context boundary for this resource. |
requires_context | list[str] | — | Context keys Studio must send for resource access control. |
on_list | collections.abc.Callable[..., list[dict[str, typing.Any]]] | None | |
on_get | `collections.abc.Callable[..., dict[str, typing.Any] | None]` | None |
on_create | collections.abc.Callable[..., dict[str, typing.Any]] | None | |
on_update | `collections.abc.Callable[..., dict[str, typing.Any] | None]` | None |
on_delete | collections.abc.Callable[..., bool] | None | |
on_import | collections.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
| Field | Type | Default | Description |
|---|---|---|---|
workspace_id | str | required | |
job_id | str | required | |
started_by | str | required | |
started_at | datetime | required | |
mission_id | str | required | |
mission_name | str | required | |
mission_context | Any | None | |
job_instructions | JobInstructions | None |
job.JobResponse
Inherits from: common.SvBaseModel
Model Fields
| Field | Type | Default | Description |
|---|---|---|---|
job_id | str | required | |
status | <enum 'EntityStatus'> | required | |
message | str | required | |
payload | dict[str, typing.Any] | None | |
error_message | str | None | |
error_traceback | str | None |
event.JobStartConfirmationEvent
Inherits from: event.Event
No additional fields beyond parent class.
contracts.SupervaizerV2AgentRegistrationContract
Inherits from: contracts.ContractModel
Model Fields
| Field | Type | Default | Description |
|---|---|---|---|
supervaizer_contract_version | Literal[2] | 2 | |
agent | V2AgentIdentity | required | |
versions | V2ProtocolVersions | required | |
a2a | V2A2AController | required | |
capabilities | V2AgentCapabilities | — | |
job_policy | V2JobPolicy | — | |
resources | list[contracts.V2ResourceDefinition] | — | |
datasets | list[contracts.V2DatasetDefinition] | — | |
dashboards | list[contracts.V2DashboardDefinition] | — | |
workspace_binding | V2WorkspaceBindingDefinition | None |
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
| Field | Type | Default | Description |
|---|---|---|---|
id | str | required | Action identifier used to invoke the action. |
mutating | bool | True | Whether invoking the action changes agent-side state. Defaults to True so an undeclared action requires write permission. |
scope | Literal['workspace', 'mission', 'job'] | 'job' | Context the action operates within. |
label | str | None | Short caption a consumer may show instead of one derived from the id. Plain text; display only, never an authorization input. |
description | str | None | One or two plain-language sentences a consumer may show as help text, such as a tooltip. Plain text; display only, never an authorization input. |
kind | Literal['command', 'help'] | 'command' | help actions propose or check a draft for target_field and must declare mutating=False. Omitted when command. |
target_field | str | None | Setup field id whose draft a help action result fills. |
dry_run | bool | False | Test 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
| Field | Type | Default | Description |
|---|---|---|---|
request_id | str | required | |
actor | V2ActorContext | required | |
workspace | V2WorkspaceContext | required | |
mission_id | str | required | |
agent_slug | str | required | |
surface | str | required | |
action | str | required | |
input | dict[str, Any] | — | |
idempotency_key | str | None | |
draft_session_id | str | None | |
job_id | str | None | |
case_id | str | None | |
step_id | str | None | |
mission | V2MissionContext | None | |
workspace_authorization | V2VerifiedWorkspaceContext | None |
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
| Field | Type | Default | Description |
|---|---|---|---|
format | Literal['markdown', 'html'] | 'markdown' | Markup of content. |
content | str | required | Markdown 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
| Field | Type | Default | Description |
|---|---|---|---|
tagline | str | required | |
summary | str | required | What the agent does, in one or two sentences. |
example_goals | list[str] | required | Suggested first requests a consumer may offer verbatim. |
avatar_url | str | None |
contracts.V2AgentMethod
Inherits from: contracts.ContractModel
Model Fields
| Field | Type | Default | Description |
|---|---|---|---|
method | str | required | |
params | dict[str, Any] | — | |
description | str | None | |
is_async | bool | False | |
timeout | int | 600 |
contracts.V2AgentMethods
Inherits from: contracts.ContractModel
Model Fields
| Field | Type | Default | Description |
|---|---|---|---|
refresh | V2AgentMethod | None | |
custom | dict[str, contracts.V2AgentMethod] | — |
case.Case
Inherits from: case.CaseAbstractModel
No additional fields beyond parent class.
case.CaseAbstractModel
Inherits from: common.SvBaseModel
Model Fields
| Field | Type | Default | Description |
|---|---|---|---|
id | str | required | |
job_id | str | required | |
name | str | required | |
account | ForwardRef('Account') | required | |
description | str | required | |
status | <enum 'EntityStatus'> | required | |
updates | list[case.CaseNodeUpdate] | [] | |
total_cost | float | 0.0 | |
final_delivery | dict[str, typing.Any] | None | |
finished_at | datetime | None | |
metadata | dict[str, Any] | — | Agent-provided domain metadata (e.g. contact context) |
case.CaseNode
Inherits from: common.SvBaseModel
Model Fields
| Field | Type | Default | Description |
|---|---|---|---|
name | str | required | |
type | <enum 'CaseNodeType'> | required | |
factory | Any | None | |
description | str | '' | |
can_be_confirmed | bool | False |
case.CaseNodeUpdate
Inherits from: common.SvBaseModel
CaseNodeUpdate is a class that represents an update to a case node.
Returns: CaseNodeUpdate: CaseNodeUpdate object
Model Fields
| Field | Type | Default | Description |
|---|---|---|---|
index | int | None | |
cost | float | None | |
name | str | None | |
payload | dict[str, typing.Any] | None | |
is_final | bool | False | |
upsert | bool | False | |
error | str | None | |
scheduled_at | datetime | None | |
scheduled_method | str | None | |
scheduled_params | dict[str, typing.Any] | None | |
scheduled_status | str | None |
context.ContextCitation
Inherits from: common.SvBaseModel
Model Fields
| Field | Type | Default | Description |
|---|---|---|---|
ref | str | required | |
title | str | required | |
source_type | str | required | |
version | int | required |
context.ContextOpenResponse
Inherits from: common.SvBaseModel
Model Fields
| Field | Type | Default | Description |
|---|---|---|---|
ref | str | required | |
title | str | required | |
scope | Literal['workspace', 'mission'] | required | |
source_type | str | required | |
version | int | required | |
instructions | str | '' | |
tags | list[str] | — | |
content | str | required | |
citations | list[context.ContextCitation] | — |
context.ContextSearchResponse
Inherits from: common.SvBaseModel
Model Fields
| Field | Type | Default | Description |
|---|---|---|---|
query | str | required | |
results | list[context.ContextSearchResult] | — |
context.ContextSearchResult
Inherits from: common.SvBaseModel
Model Fields
| Field | Type | Default | Description |
|---|---|---|---|
ref | str | required | |
title | str | required | |
scope | Literal['workspace', 'mission'] | required | |
source_type | str | required | |
version | int | required | |
tags | list[str] | — | |
excerpt | str | '' | |
score | int | 0 | |
citation | ContextCitation | None |
contracts.AgentMethodContract
Inherits from: contracts.ContractModel
Model Fields
| Field | Type | Default | Description |
|---|---|---|---|
name | str | required | |
method | str | required | |
params | dict[str, typing.Any] | None | |
fields | `list[supervaizer.contracts.AgentMethodFieldContract | dict[str, typing.Any]]` | None |
description | str | None | |
is_async | bool | False | |
timeout | int | 600 | |
nodes | dict[str, typing.Any] | None |
contracts.AgentMethodFieldContract
Inherits from: contracts.ContractModel
Model Fields
| Field | Type | Default | Description |
|---|---|---|---|
name | str | required | |
type | str | None | |
field_type | str | 'CharField' | |
description | str | None | |
choices | list[typing.Any] | None | |
default | Any | None | |
widget | str | None | |
required | bool | False |
contracts.AgentMethodsContract
Inherits from: contracts.ContractModel
Model Fields
| Field | Type | Default | Description |
|---|---|---|---|
job_start | AgentMethodContract | required | |
job_stop | AgentMethodContract | None | |
job_status | AgentMethodContract | None | |
human_answer | AgentMethodContract | None | |
chat | AgentMethodContract | None | |
custom | dict[str, supervaizer.contracts.AgentMethodContract] | None |
contracts.AgentRegistrationContract
Inherits from: contracts.ContractModel
Minimal schema for agent registration payloads consumed by Studio.
Model Fields
| Field | Type | Default | Description |
|---|---|---|---|
id | str | None | |
slug | str | required | |
name | str | required | |
api_path | str | required | |
release_notes_url | str | None | |
methods | AgentMethodsContract | dict[str, typing.Any] | — | |
parameters_setup | list[dict[str, Any]] | — | |
data_resources | `list[contracts.DataResourceContract | dict[str, Any]]` | — |
introduction | `ForwardRef('V2AgentIntroduction | None')` | None |
full_description | `ForwardRef('V2AgentFullDescription | None')` | None |
billing_catalog | `ForwardRef('list[BillingCatalogItem] | None')` | None |
contracts.CaseUpdateEvent
Inherits from: contracts.ContractModel
Model Fields
| Field | Type | Default | Description |
|---|---|---|---|
name | str | required | |
payload | dict[str, Any] | — | |
cost | float | 0.0 | |
index | int | None | |
is_final | bool | False |
contracts.CaseUpdateRequest
Inherits from: contracts.ContractModel
Model Fields
| Field | Type | Default | Description |
|---|---|---|---|
answer | dict[str, Any] | required | |
message | str | None |
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
| Field | Type | Default | Description |
|---|---|---|---|
controller_contract_version | str | '1.0' | |
api_base_path | str | '/api' | |
endpoints | dict[str, str] | — |
contracts.DataResourceContextContract
Inherits from: contracts.ContractModel
Model Fields
| Field | Type | Default | Description |
|---|---|---|---|
workspace_id | str | None | |
workspace_slug | str | None | |
mission_id | str | None | |
mission | V2MissionContext | None | |
agent_slug | str | None | |
request_id | str | None |
contracts.DataResourceContract
Inherits from: contracts.ContractModel
Model Fields
| Field | Type | Default | Description |
|---|---|---|---|
name | str | required | |
display_name | str | required | |
description | str | '' | |
fields | list[contracts.DataResourceFieldContract] | — | |
read_only | bool | False | |
importable | bool | False | |
operations | dict[str, bool] | — | |
scope | Literal['workspace', 'mission', 'job'] | 'workspace' | |
requires_context | list[str] | — |
contracts.DataResourceFieldContract
Inherits from: contracts.ContractModel
Model Fields
| Field | Type | Default | Description |
|---|---|---|---|
name | str | required | |
field_type | str | 'string' | |
label | str | None | |
required | bool | False | |
editable | str | 'always' | |
visible_on | list[str] | — | |
description | str | None | |
related_resource | str | None | |
sensitive | bool | False | |
display_label | str | None |
contracts.DataResourceListResponse
Inherits from: contracts.ContractModel
Structured response shape for DataResource list operations.
Model Fields
| Field | Type | Default | Description |
|---|---|---|---|
items | list[dict[str, Any]] | — |
contracts.JobStartRequest
Inherits from: contracts.ContractModel
Model Fields
| Field | Type | Default | Description |
|---|---|---|---|
job_context | dict[str, Any] | required | |
job_fields | dict[str, Any] | — | |
encrypted_agent_parameters | str | None | |
rule_snapshot | `ForwardRef('RuleCheckpointSnapshot | None')` | None |
contracts.RuleCheckpointRequest
Inherits from: contracts.ContractModel
Model Fields
| Field | Type | Default | Description |
|---|---|---|---|
occurrence_id | str | required | |
phase | Literal['before', 'after'] | required | |
snapshot_hash | str | required | |
job_id | str | required | |
case_id | str | required | |
step_id | str | required | |
context | dict[str, Any] | required | |
secret_refs | list[str] | — |
contracts.RuleCheckpointResponse
Inherits from: contracts.ContractModel
Model Fields
| Field | Type | Default | Description |
|---|---|---|---|
checkpoint_id | str | required | |
status | Literal['allow', 'pause', 'stop'] | required | |
snapshot_hash | str | required | |
input_hash | str | required |
contracts.RuleCheckpointResume
Inherits from: contracts.ContractModel
Model Fields
| Field | Type | Default | Description |
|---|---|---|---|
checkpoint_id | str | required | |
job_id | str | required | |
case_id | str | required | |
agent_slug | str | required | |
occurrence_id | str | required | |
phase | Literal['before', 'after'] | required | |
status | Literal['allow', 'stop'] | required | |
snapshot_hash | str | required | |
input_hash | str | required | |
decision_id | str | required |
contracts.RuleCheckpointSnapshot
Inherits from: contracts.ContractModel
Opaque frozen rule snapshot supplied by Studio for one governed job.
Model Fields
| Field | Type | Default | Description |
|---|---|---|---|
hash | str | required | |
checkpoint_url | str | required | |
version | Literal[1] | required | |
checkpoint_token | str | required |
contracts.ServerRegistrationContract
Inherits from: contracts.ControllerContract
Minimal schema for server.register details.
Model Fields
| Field | Type | Default | Description |
|---|---|---|---|
server_id | str | required | |
url | str | required | |
uri | str | required | |
api_version | str | required | |
controller_version | str | None | |
environment | str | None | |
agents | list[contracts.AgentRegistrationContract] | — |
contracts.V2A2AController
Inherits from: contracts.ContractModel
Model Fields
| Field | Type | Default | Description |
|---|---|---|---|
agent_card_url | str | required | |
controller_url | str | required | |
transport | V2A2ATransport | — | |
external_interop | V2A2AExternalInterop | — |
contracts.V2A2AExternalInterop
Inherits from: contracts.ContractModel
Model Fields
| Field | Type | Default | Description |
|---|---|---|---|
inbound_tasks | bool | False | |
outbound_delegation | bool | False |
contracts.V2A2ATransport
Inherits from: contracts.ContractModel
Model Fields
| Field | Type | Default | Description |
|---|---|---|---|
json_rpc | bool | True | |
sse | bool | True | |
push_notifications | bool | False |
contracts.V2A2UIResourceImportColumn
Inherits from: contracts.ContractModel
Model Fields
| Field | Type | Default | Description |
|---|---|---|---|
id | str | required | |
label | str | None | |
type | str | 'string' | |
required | bool | False |
contracts.V2A2UIResourceImportDocument
Inherits from: contracts.ContractModel
A2UI-shaped resource import surface consumed by Studio.
Model Fields
| Field | Type | Default | Description |
|---|---|---|---|
type | Literal['ResourceImport'] | 'ResourceImport' | |
id | str | required | |
title | str | required | |
resource | str | required | |
accepted_formats | list[Literal['csv', 'xlsx']] | — | |
fields | list[contracts.V2ResourceFieldDefinition] | — | |
columns | list[contracts.V2A2UIResourceImportColumn] | — | |
submit | V2A2UISubmitDefinition | required | |
state | dict[str, Any] | — |
contracts.V2A2UISubmitDefinition
Inherits from: contracts.ContractModel
Model Fields
| Field | Type | Default | Description |
|---|---|---|---|
action | str | required | |
label | str | None |
contracts.V2ActionResult
Inherits from: contracts.ContractModel
Model Fields
| Field | Type | Default | Description |
|---|---|---|---|
status | Literal['ok', 'error'] | required | |
effects | list[contracts.V2Effect] | — | |
job_state | `ForwardRef('V2JobStateSnapshot | None')` | None |
replay_safety | V2ReplaySafetyMetadata | None | |
setup_plan | dict[str, typing.Any] | V2SetupPlan | None | |
draft | V2FieldDraft | None | |
dry_run | V2DryRunOutcome | None |
contracts.V2ActorContext
Inherits from: contracts.ContractModel
Model Fields
| Field | Type | Default | Description |
|---|---|---|---|
user_id | str | required |
contracts.V2AgentCapabilities
Inherits from: contracts.ContractModel
Model Fields
| Field | Type | Default | Description |
|---|---|---|---|
surfaces | list[str] | — | |
surface_definitions | list[contracts.V2SurfaceDefinition] | — | Display text for declared surfaces, at most one per id. Omitted from the serialized registration when empty. |
actions | list[contracts.V2ActionDefinition] | — | |
case_lanes | list[contracts.V2CaseLaneDefinition] | — | |
artifact_types | list[contracts.V2ArtifactTypeDefinition] | — | |
rule_checkpoints | `ForwardRef('V2RuleCheckpointCapability | None')` | None |
scheduled_start | bool | False |
contracts.V2AgentIdentity
Inherits from: contracts.ContractModel
Model Fields
| Field | Type | Default | Description |
|---|---|---|---|
id | str | required | |
slug | str | required | |
display_name | str | required |
contracts.V2ArtifactRef
Inherits from: contracts.ContractModel
Model Fields
| Field | Type | Default | Description |
|---|---|---|---|
id | str | required | |
type | str | required | |
title | str | None | |
external_id | str | None | |
media_type | str | None |
contracts.V2ArtifactTypeDefinition
Inherits from: contracts.ContractModel
Model Fields
| Field | Type | Default | Description |
|---|---|---|---|
type | str | required | |
label | str | required | |
renderer_surface | str | None |
contracts.V2AwaitingFieldDefinition
Inherits from: contracts.ContractModel
Model Fields
| Field | Type | Default | Description |
|---|---|---|---|
id | str | required | |
label | str | required | |
type | str | 'boolean' | |
required | bool | False | |
item_fields | list[supervaizer.contracts.V2SetupFieldDefinition] | None | |
default | Any | None | |
description | str | None | |
placeholder | str | None | |
multiline | bool | False | |
min_rows | int | None | |
options | list[supervaizer.contracts.V2FieldOption] | None | |
options_source | V2ResourceFieldOptionsSource | None | |
depends_on | V2FieldDependsOn | None | |
validation | V2FieldValidation | None |
contracts.V2AwaitingState
Inherits from: contracts.ContractModel
Model Fields
| Field | Type | Default | Description |
|---|---|---|---|
reason | str | required | |
surface | str | required | |
action | str | required | |
fields | list[contracts.V2AwaitingFieldDefinition] | — | |
reopenable | bool | False | Whether an already-answered step may be reopened and resubmitted with edited values. |
contracts.V2CaseLaneDefinition
Inherits from: contracts.ContractModel
Model Fields
| Field | Type | Default | Description |
|---|---|---|---|
id | str | required | |
label | str | required | |
default | bool | False |
contracts.V2CaseSnapshot
Inherits from: contracts.ContractModel
Model Fields
| Field | Type | Default | Description |
|---|---|---|---|
id | str | required | |
lane | str | 'work' | |
title | str | None | |
status | str | None | |
external_id | str | None | |
metadata | dict[str, Any] | — | |
steps | list[contracts.V2StepSnapshot] | — |
contracts.V2ContextAssignment
Inherits from: contracts.ContractModel
Model Fields
| Field | Type | Default | Description |
|---|---|---|---|
items | list[contracts.V2ContextAssignmentItem] | required | |
mission_id | str | None | |
job_id | str | required | |
assigned_at | str | required |
contracts.V2ContextAssignmentItem
Inherits from: contracts.ContractModel
Model Fields
| Field | Type | Default | Description |
|---|---|---|---|
ref | str | required | |
version | int | required | |
scope | Literal['workspace', 'mission'] | required | |
title | str | required |
contracts.V2CostEstimate
Inherits from: contracts.ContractModel
A cost range or an explicit unknown, never a single number.
Model Fields
| Field | Type | Default | Description |
|---|---|---|---|
status | Literal['estimated', 'unknown'] | required | |
unit | str | None | Free label shown verbatim, such as USD, tokens or credits. |
min | float | None | |
max | float | None | |
basis | str | None | Plain text, for example 'for 50 responses'. |
contracts.V2DashboardDefinition
Inherits from: contracts.ContractModel
Model Fields
| Field | Type | Default | Description |
|---|---|---|---|
id | str | required | |
label | str | required | |
surface | str | 'mission.analytics' | |
widgets | list[contracts.V2DashboardWidgetDefinition] | — |
contracts.V2DashboardWidgetDataRef
Inherits from: contracts.ContractModel
Model Fields
| Field | Type | Default | Description |
|---|---|---|---|
mode | Literal['ref', 'action', 'inline'] | 'ref' | |
datasetId | str | None | |
action | str | None | |
input | dict[str, Any] | — | |
values | list[dict[str, typing.Any]] | dict[str, typing.Any] | None |
contracts.V2DashboardWidgetDefinition
Inherits from: contracts.ContractModel
Model Fields
| Field | Type | Default | Description |
|---|---|---|---|
id | str | required | |
title | str | required | |
data | V2DashboardWidgetDataRef | None | |
layout | dict[str, Any] | — | |
visualization | V2DashboardWidgetVisualization | — |
contracts.V2DashboardWidgetVisualization
Inherits from: contracts.ContractModel
Model Fields
| Field | Type | Default | Description |
|---|---|---|---|
type | Literal['table', 'metric', 'vega-lite', 'custom'] | 'table' | |
spec | dict[str, typing.Any] | None |
contracts.V2DatasetDefinition
Inherits from: contracts.ContractModel
Model Fields
| Field | Type | Default | Description |
|---|---|---|---|
id | str | required | |
label | str | required | |
auto_surface | bool | False | |
scope | Literal['workspace', 'mission', 'job'] | 'workspace' | |
display | V2ResourceDisplayDefinition | None |
contracts.V2DryRunOutcome
Inherits from: contracts.ContractModel
What a dry-run action left behind.
Model Fields
| Field | Type | Default | Description |
|---|---|---|---|
expires_at | datetime | None | |
deletable | bool | required | |
cost_incurred | V2CostEstimate | None |
contracts.V2Effect
Inherits from: contracts.ContractModel
Model Fields
| Field | Type | Default | Description |
|---|---|---|---|
type | str | required | |
job_id | str | None | |
case_id | str | None | |
step_id | str | None | |
resource | str | None | |
dataset | str | None | |
artifact_id | str | None | |
status | str | None | |
message | str | None | |
count | int | None | |
item | dict[str, typing.Any] | None | |
items | list[dict[str, typing.Any]] | None | |
rows | list[dict[str, typing.Any]] | None | |
errors | list[dict[str, typing.Any]] | None | |
gaps | list[dict[str, typing.Any]] | None | |
summary | dict[str, typing.Any] | None | |
case | dict[str, typing.Any] | None | |
data | dict[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
| Field | Type | Default | Description |
|---|---|---|---|
field | str | required | Parent field id; parents may chain. |
in_ | list[str] | required | Stringified 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
| Field | Type | Default | Description |
|---|---|---|---|
field | str | required | Target setup field id. |
value | Any | None | Proposed value; None for a validate-only result. |
suggestions | list[contracts.V2Suggestion] | — |
contracts.V2FieldOption
Inherits from: contracts.ContractModel
One selectable choice. Bare strings are rejected so labels stay explicit.
Model Fields
| Field | Type | Default | Description |
|---|---|---|---|
value | str | required | |
label | str | required |
contracts.V2FieldValidation
Inherits from: contracts.ContractModel
Rules a consumer enforces before submit. Each rule must fit the field type.
Model Fields
| Field | Type | Default | Description |
|---|---|---|---|
min_length | int | None | |
max_length | int | None | |
pattern | str | None | Regular expression, ECMAScript-safe subset. |
min | float | None | |
max | float | None | |
min_items | int | None | |
max_items | int | None | |
message | str | None | Shown instead of the generic validation error. |
contracts.V2JobPolicy
Inherits from: contracts.ContractModel
Model Fields
| Field | Type | Default | Description |
|---|---|---|---|
default_timeout_seconds | int | None | |
offline_start_policy | Literal['block'] | 'block' | |
offline_running_policy | Literal['fail_in_studio'] | 'fail_in_studio' | |
sync | V2JobSyncPolicy | None | |
setup | V2JobSetupPolicy | None |
contracts.V2JobSetupPolicy
Inherits from: contracts.ContractModel
Generic agent-declared job setup actions.
Model Fields
| Field | Type | Default | Description |
|---|---|---|---|
preview_action | str | 'job.start.preview' | |
start_action | str | 'job.start' | |
submit_action | str | 'step.awaiting.submit' | |
action_scopes | list[Literal['workspace', 'job', 'case', 'step']] | — | |
plan | `ForwardRef('dict[str, Any] | V2SetupPlan | None')` |
contracts.V2JobSnapshot
Inherits from: contracts.ContractModel
Model Fields
| Field | Type | Default | Description |
|---|---|---|---|
id | str | required | |
agent_slug | str | required | |
mission_id | str | required | |
status | str | required | |
source | V2JobSource | required |
contracts.V2JobSource
Inherits from: contracts.ContractModel
Model Fields
| Field | Type | Default | Description |
|---|---|---|---|
type | Literal['fresh_start', 'external'] | required | |
external_ref | str | None | |
previous_job_id | str | None | |
target_type | str | None | Agent-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
| Field | Type | Default | Description |
|---|---|---|---|
job | V2JobSnapshot | required | |
cases | list[contracts.V2CaseSnapshot] | — |
contracts.V2JobSyncPolicy
Inherits from: contracts.ContractModel
Model Fields
| Field | Type | Default | Description |
|---|---|---|---|
action | str | 'job.sync' | |
supported_statuses | list[str] | — |
contracts.V2JobSyncResult
Inherits from: contracts.V2ActionResult
Model Fields
| Field | Type | Default | Description |
|---|---|---|---|
external_ref | str | None | |
external_version | str | None | |
sync_cursor | str | None | |
observed_at | str | None |
contracts.V2MissionContext
Inherits from: contracts.ContractModel
Studio mission sent with a request. The SDK does not read metadata keys.
Model Fields
| Field | Type | Default | Description |
|---|---|---|---|
id | str | required | |
name | str | None | |
metadata | dict[str, Any] | — |
contracts.V2MountedResourceViewDefinition
Inherits from: contracts.ContractModel
Agent override that mounts an A2UI surface on a full resource view.
Model Fields
| Field | Type | Default | Description |
|---|---|---|---|
view | str | required | Generated resource view replaced by the mount (e.g. import, edit). |
surface | str | required | Registered A2UI surface id served for this resource view. |
contracts.V2ProtocolVersions
Inherits from: contracts.ContractModel
Model Fields
| Field | Type | Default | Description |
|---|---|---|---|
a2ui_version | str | required | |
a2ui_catalog_version | str | required | |
a2a_version | str | required | |
ag_ui_version | str | None |
contracts.V2ReplaySafetyMetadata
Inherits from: contracts.ContractModel
Model Fields
| Field | Type | Default | Description |
|---|---|---|---|
dedupe_keys | list[str] | — | |
stable_external_ids_required | bool | True | |
strictly_idempotent_response | bool | False | |
convergent | bool | True |
contracts.V2ResourceDefinition
Inherits from: contracts.ContractModel
Model Fields
| Field | Type | Default | Description |
|---|---|---|---|
id | str | required | |
label | str | required | |
auto_surface | bool | False | |
scope | Literal['workspace', 'mission', 'job'] | 'workspace' | |
requires_context | list[str] | — | |
operations | list[str] | — | |
display | V2ResourceDisplayDefinition | None | |
fields | list[contracts.V2ResourceFieldDefinition] | — | |
mounted_views | list[contracts.V2MountedResourceViewDefinition] | — |
contracts.V2ResourceDisplayDefinition
Inherits from: contracts.ContractModel
Model Fields
| Field | Type | Default | Description |
|---|---|---|---|
title_field | str | None | |
columns | list[str] | — | |
search_fields | list[str] | — |
contracts.V2ResourceFieldDefinition
Inherits from: contracts.ContractModel
Model Fields
| Field | Type | Default | Description |
|---|---|---|---|
id | str | required | |
label | str | required | |
type | str | 'string' | |
required | bool | False | |
read_only | bool | False | |
multiline | bool | False | |
options_source | V2ResourceFieldOptionsSource | None | |
item_fields | list[supervaizer.contracts.V2SetupFieldDefinition] | None | |
default | Any | None | |
description | str | None | |
placeholder | str | None | |
min_rows | int | None | |
options | list[supervaizer.contracts.V2FieldOption] | None | |
depends_on | V2FieldDependsOn | None | |
validation | V2FieldValidation | None |
contracts.V2ResourceFieldOptionsSource
Inherits from: contracts.ContractModel
Model Fields
| Field | Type | Default | Description |
|---|---|---|---|
type | Literal['resource'] | 'resource' | |
resource | str | required | |
value_field | str | 'id' | |
label_field | str | None |
contracts.V2RuleCheckpointCapability
Inherits from: contracts.ContractModel
Opt-in support for Studio before/after rule checkpoints.
Model Fields
| Field | Type | Default | Description |
|---|---|---|---|
version | Literal[1] | 1 | |
phases | list[Literal['before', 'after']] | required | |
secret_refs | list[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
| Field | Type | Default | Description |
|---|---|---|---|
id | str | required | |
label | str | required | |
type | str | 'string' | |
item_fields | list[supervaizer.contracts.V2SetupFieldDefinition] | None | |
required | bool | False | |
default | Any | None | |
description | str | None | |
placeholder | str | None | |
multiline | bool | False | |
min_rows | int | None | |
options | list[supervaizer.contracts.V2FieldOption] | None | |
options_source | V2ResourceFieldOptionsSource | None | |
depends_on | V2FieldDependsOn | None | |
validation | V2FieldValidation | None |
contracts.V2SetupPlan
Inherits from: contracts.ContractModel
Typed setup plan; serializes to confirmation_required and steps[].
Model Fields
| Field | Type | Default | Description |
|---|---|---|---|
confirmation_required | bool | True | |
steps | list[contracts.V2SetupStep] | — | |
cost_estimate | V2CostEstimate | None |
contracts.V2SetupStep
Inherits from: contracts.ContractModel
Model Fields
| Field | Type | Default | Description |
|---|---|---|---|
id | str | required | |
title | str | required | |
description | str | None | |
status | Literal['pending', 'awaiting', 'done', 'skipped'] | 'pending' | |
fields | list[contracts.V2SetupFieldDefinition] | — | |
help_actions | list[str] | — | Ids of actions declared with kind='help' in the registration. |
contracts.V2StepSnapshot
Inherits from: contracts.ContractModel
Model Fields
| Field | Type | Default | Description |
|---|---|---|---|
id | str | required | |
activity | Literal['operation', 'delegation'] | required | |
status | str | required | |
title | str | None | |
external_id | str | None | |
awaiting | V2AwaitingState | None | |
outputs | list[contracts.V2ArtifactRef] | — |
contracts.V2Suggestion
Inherits from: contracts.ContractModel
Model Fields
| Field | Type | Default | Description |
|---|---|---|---|
message | str | required | |
severity | Literal['info', 'warning', 'error'] | required | |
field | str | None | |
proposed_value | Any | None |
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
| Field | Type | Default | Description |
|---|---|---|---|
id | str | required | Surface id, as listed in capabilities.surfaces. |
label | str | None | Short caption a consumer may show instead of one derived from the id. Plain text; display only, never an authorization input. |
description | str | None | One 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
| Field | Type | Default | Description |
|---|---|---|---|
request_id | str | required | |
actor | V2ActorContext | required | |
workspace | V2WorkspaceContext | required | |
mission_id | str | required | |
agent_slug | str | required | |
surface | str | required | |
input | dict[str, Any] | — | |
draft_session_id | str | None | |
job_id | str | None | |
case_id | str | None | |
step_id | str | None | |
mission | V2MissionContext | None | |
workspace_authorization | V2VerifiedWorkspaceContext | None |
contracts.V2SurfaceResult
Inherits from: contracts.ContractModel
Model Fields
| Field | Type | Default | Description |
|---|---|---|---|
surface | str | required | |
a2ui_version | str | None | |
a2ui_catalog_version | str | None | |
document | dict[str, Any] | — |
contracts.V2VerifiedWorkspaceContext
Inherits from: contracts.ContractModel
Model Fields
| Field | Type | Default | Description |
|---|---|---|---|
grant_id | str | required | |
workspace_id | str | required | |
workspace_slug | str | None | |
agent_id | str | required | |
agent_slug | str | required | |
server_id | str | required | |
scopes | list[str] | — | |
agent_workspace_ref | str | None |
contracts.V2WorkspaceAuthorizationSettings
Inherits from: contracts.ContractModel
Model Fields
| Field | Type | Default | Description |
|---|---|---|---|
enabled | bool | False | |
issuer | str | None | |
audience | str | None | |
public_key_pem | str | None | |
jwks_url | str | None | |
leeway_seconds | int | 30 |
contracts.V2WorkspaceBindingCreateDefinition
Inherits from: contracts.ContractModel
Model Fields
| Field | Type | Default | Description |
|---|---|---|---|
surface | str | 'workspace_binding.create' | |
action | str | 'workspace_binding.create' | |
fields | list[contracts.V2ResourceFieldDefinition] | — |
contracts.V2WorkspaceBindingDefinition
Inherits from: contracts.ContractModel
Model Fields
| Field | Type | Default | Description |
|---|---|---|---|
required | bool | False | |
modes | list[Literal['bind_existing', 'create_and_bind']] | — | |
reference_label | str | 'Agent workspace reference' | |
reference_help | str | 'Select or create the agent-side record this Studio workspace may access.' | |
reference_placeholder | str | 'Example: workspace-prod' | |
existing | V2WorkspaceBindingExistingDefinition | None | |
create | V2WorkspaceBindingCreateDefinition | None |
contracts.V2WorkspaceBindingExistingDefinition
Inherits from: contracts.ContractModel
Model Fields
| Field | Type | Default | Description |
|---|---|---|---|
action | str | 'workspace_binding.options' | |
value_field | str | 'agent_workspace_ref' | |
label_field | str | 'display_name' |
contracts.V2WorkspaceContext
Inherits from: contracts.ContractModel
Model Fields
| Field | Type | Default | Description |
|---|---|---|---|
id | str | required | |
slug | str | None |
data_resource.DataResourceContext
Inherits from: common.SvBaseModel
Studio request context passed to DataResource callbacks.
Model Fields
| Field | Type | Default | Description |
|---|---|---|---|
workspace_id | str | None | |
workspace_slug | str | None | |
mission_id | str | None | |
mission | V2MissionContext | None | |
agent_slug | str | required | |
request_id | str | None | |
workspace_authorization | V2VerifiedWorkspaceContext | None |
data_resource.DataResourceField
Inherits from: common.SvBaseModel
Describes a single field in a DataResource for Studio rendering.
Model Fields
| Field | Type | Default | Description |
|---|---|---|---|
name | str | required | Column/attribute name |
field_type | <enum 'FieldType'> | string | One of: string, integer, boolean, date, datetime, text, email, url |
label | str | None | Human-readable label; defaults to name.title() |
required | bool | False | Required on create form |
editable | <enum 'Editable'> | always | |
visible_on | list[str] | — | Views that render this field: list, detail, create, edit |
description | str | None | Help text shown in Studio |
related_resource | str | None | Name of another DataResource this field FK-references |
sensitive | bool | False | True when Studio should mask this field for non-manager users |
deploy.drivers.base.DeploymentPlan
Deployment plan containing all actions to be taken.
| Field | Type | Default | Description |
|---|---|---|---|
platform | str | required | |
service_name | str | required | |
environment | str | required | |
region | str | required | |
project_id | str | None | |
actions | list[deploy.drivers.base.ResourceAction] | [] | |
total_cost_estimate | str | None | |
estimated_duration | str | None | |
current_image | str | None | |
current_url | str | None | |
current_status | str | None | |
target_image | str | required | |
target_port | int | 8000 | |
target_env_vars | dict[str, str] | ||
target_secrets | dict[str, str] |
deploy.drivers.base.DeploymentResult
Result of a deployment operation.
| Field | Type | Default | Description |
|---|---|---|---|
success | bool | required | |
service_url | str | None | |
service_id | str | None | |
revision | str | None | |
image_digest | str | None | |
status | str | 'unknown' | |
health_status | str | 'unknown' | |
deployment_time | float | None | |
error_message | str | None | |
error_details | dict[str, typing.Any] | None |
deploy.state.DeploymentState
Deployment state model.
| Field | Type | Default | Description |
|---|---|---|---|
version | int | 2 | State file format version |
service_name | str | required | Name of the deployed service |
platform | str | required | Target platform (cloud-run |
environment | str | required | Environment (dev |
region | str | required | Provider region |
project_id | str | None | GCP project / AWS account / DO project |
image_tag | str | required | Docker image tag |
image_digest | str | None | Docker image digest |
service_url | str | None | Public service URL |
revision | str | None | Service revision/version |
created_at | datetime | — | Deployment creation time |
updated_at | datetime | — | Last update time |
status | str | 'unknown' | Deployment status |
health_status | str | 'unknown' | Health check status |
port | int | 8000 | Application port |
api_key_generated | bool | False | Whether API key was generated |
rsa_key_generated | bool | False | Whether RSA key was generated |
provider_data | dict[str, Any] | — | Platform-specific data |
deploy.drivers.base.ResourceAction
Represents an action to be taken on a resource.
| Field | Type | Default | Description |
|---|---|---|---|
resource_type | <enum 'ResourceType'> | required | |
action_type | <enum 'ActionType'> | required | |
resource_name | str | required | |
description | str | required | |
cost_estimate | str | None | |
metadata | dict[str, typing.Any] | None |
deploy.health.HealthCheckConfig
Configuration for health check operations.
| Field | Type | Default | Description |
|---|---|---|---|
timeout | int | 60 | |
max_retries | int | 5 | |
base_delay | float | 1.0 | |
max_delay | float | 30.0 | |
backoff_multiplier | float | 2.0 | |
success_threshold | int | 1 | |
endpoints | list[str] | None |
deploy.health.HealthCheckResult
Result of a health check operation.
| Field | Type | Default | Description |
|---|---|---|---|
status | <enum 'HealthStatus'> | required | |
response_time | float | required | |
status_code | int | None | |
error_message | str | None | |
endpoint | str | None | |
timestamp | float | 0.0 |
event.AbstractEvent
Inherits from: common.SvBaseModel
Model Fields
| Field | Type | Default | Description |
|---|---|---|---|
source | dict[str, Any] | required | |
account | Any | required | |
type | <enum 'EventType'> | required | |
object_type | str | required | |
details | dict[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
| Field | Type | Default | Description |
|---|---|---|---|
id | str | required | |
name | str | required | |
agent_name | str | required | |
status | <enum 'EntityStatus'> | required | |
job_context | JobContext | required | |
payload | Any | None | |
result | Any | None | |
error | str | None | |
responses | list[job.JobResponse] | [] | |
finished_at | datetime | None | |
created_at | datetime | None | |
agent_parameters | list[dict[str, typing.Any]] | None | |
case_ids | list[str] | [] | |
metadata | dict[str, Any] | — | Agent-provided domain metadata (e.g. source object context) |
job.JobInstructions
Inherits from: common.SvBaseModel
Model Fields
| Field | Type | Default | Description |
|---|---|---|---|
max_cases | int | None | |
max_duration | int | None | |
max_cost | float | None | |
stop_on_warning | bool | False | |
stop_on_error | bool | True | |
job_start_time | float | None |
protocol.a2a.controller.JsonRpcError
Inherits from: contracts.ContractModel
Model Fields
| Field | Type | Default | Description |
|---|---|---|---|
code | int | required | |
message | str | required | |
data | dict[str, typing.Any] | None |
protocol.a2a.controller.JsonRpcRequest
Inherits from: contracts.ContractModel
Model Fields
| Field | Type | Default | Description |
|---|---|---|---|
jsonrpc | Literal['2.0'] | '2.0' | |
id | str | int | None | |
method | str | required | |
params | dict[str, Any] | — |
protocol.a2a.controller.JsonRpcResponse
Inherits from: contracts.ContractModel
Model Fields
| Field | Type | Default | Description |
|---|---|---|---|
jsonrpc | Literal['2.0'] | '2.0' | |
id | str | int | None | |
result | dict[str, typing.Any] | None | |
error | JsonRpcError | None |
routes.CaseUpdateRequest
Inherits from: common.SvBaseModel
Request model for updating a case with answer to a question.
Model Fields
| Field | Type | Default | Description |
|---|---|---|---|
answer | dict[str, Any] | required | |
message | str | None |
server_utils.ErrorResponse
Standard error response model
| Field | Type | Default | Description |
|---|---|---|---|
error | str | required | |
error_type | <enum 'ErrorType'> | required | |
detail | str | None | |
timestamp | datetime | datetime.datetime(2026, 10, 30, 9, 9, 43, 241638) | |
status_code | int | required |
routes.RegistrationRefreshRequest
Inherits from: common.SvBaseModel
Request model for re-sending the server registration event.
Model Fields
| Field | Type | Default | Description |
|---|---|---|---|
reason | str | None | |
requested_at | str | None |
server_info.ServerInfo
Complete server information for storage.
| Field | Type | Default | Description |
|---|---|---|---|
id | str | 'server_instance' | |
host | str | required | |
port | int | required | |
api_version | str | required | |
environment | str | required | |
agents | list[dict[str, str]] | required | |
start_time | float | required | |
created_at | str | required | |
updated_at | str | required |
telemetry.TelemetryModel
A base class for creating Pydantic models.
| Field | Type | Default | Description |
|---|---|---|---|
agentId | str | required | |
type | <enum 'TelemetryType'> | required | |
category | <enum 'TelemetryCategory'> | required | |
severity | <enum 'TelemetrySeverity'> | required | |
details | dict[str, Any] | required |
workspace_authorization.WorkspaceAuthorizationClaims
Inherits from: contracts.ContractModel
Model Fields
| Field | Type | Default | Description |
|---|---|---|---|
iss | str | required | |
aud | str | list[str] | required | |
sub | str | None | |
grant_id | str | required | |
workspace_id | str | required | |
workspace_slug | str | None | |
agent_id | str | required | |
agent_slug | str | required | |
server_id | str | required | |
scopes | list[str] | — | |
agent_workspace_ref | str | None | |
iat | int | None | |
exp | int | required | |
jti | str | None |
Uploaded on 2026-10-30 09:09:43