Skip to main content

Model Reference extra

Version: 0.10.1

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.

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
api_pathstrrequired
descriptionstrrequired
tagslist[str]None
methodsAgentMethodsNone
parameters_setuptyping.List[typing.Dict[str, typing.Any]]None
server_agent_idstrNone
server_agent_statusstrNone
server_agent_onboarding_statusstrNone
server_encrypted_parametersstrNone

case.CaseNodes

Inherits from: common.SvBaseModel

Model Fields

FieldTypeDefaultDescription
nodesList[case.CaseNode][]

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.

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_deliverytyping.Dict[str, typing.Any]None
finished_atdatetimeNone

case.CaseNode

Inherits from: common.SvBaseModel

Model Fields

FieldTypeDefaultDescription
namestrrequired
type<enum 'CaseNodeType'>required
factoryCallable[..., case.CaseNodeUpdate]required
descriptionstrNone
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
payloadtyping.Dict[str, typing.Any]None
is_finalboolFalse
errorstrNone

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_detailstyping.Dict[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_atdatetimeDeployment creation time
updated_atdatetimeLast 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
metadatatyping.Dict[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
endpointstyping.List[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][]

job.JobInstructions

Inherits from: common.SvBaseModel

Model Fields

FieldTypeDefaultDescription
max_casesintNone
max_durationintNone
max_costfloatNone
stop_on_warningboolFalse
stop_on_errorboolTrue
job_start_timefloatNone

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, 1, 25, 14, 28, 58, 746390)
status_codeintrequired

server.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

Uploaded on 2026-01-25 14:28:59