Skip to main content

Model Reference extra

Version: 0.9.8

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_stopAgentMethodrequired
job_statusAgentMethodrequired
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

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
descriptionstrrequired
type<enum 'CaseNoteType'>required

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

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_parameterstyping.List[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(2025, 8, 12, 14, 19, 38, 649854)
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 2025-08-12 14:19:38