Back to Openvino

Config Schema Reference

docs/articles_en/physical-ai/reference/config-schema.md

2026.2.13.3 KB
Original Source

Config Schema Reference

Preview: The config system and PolicyRuntime are planned APIs. The schemas below document the target design.

Config files use class_path and init_args to describe explicit component construction.

ComponentSpec

Direct class mode:

yaml
class_path: package.module.ClassName
init_args:
  key: value

Registry mode:

yaml
type: registered_name
key: value

The ComponentSpec fields are listed below.

FieldTypeDescription
class_pathstringFully qualified import path
init_argsobjectConstructor keyword arguments
typestringRegistered short name
extra fieldsanyFlat constructor args for registry mode

The core rules are straightforward.

  • A component spec must include either class_path or type.
  • If both fields are present, class_path takes precedence.
  • Nested component specs are instantiated recursively.

RuntimeConfig

yaml
runtime:
  class_path: physicalai.runtime.PolicyRuntime
  init_args:
    fps: 30
    robot:
      class_path: physicalai.robot.so101.SO101
      init_args:
        port: /dev/ttyACM0
    model:
      class_path: physicalai.inference.InferenceModel
      init_args:
        export_dir: ./exports/act_policy
    execution:
      class_path: physicalai.runtime.SyncExecution
      init_args:
        mode: chunk

The most common runtime fields are listed below.

FieldTypeDescription
runtimeComponentSpecRuntime orchestrator
runtime.init_args.fpsnumberControl loop frequency
runtime.init_args.robotComponentSpecRobot implementation
runtime.init_args.modelComponentSpecInference model
runtime.init_args.executionComponentSpecExecution strategy
runtime.init_args.camerasmappingOptional camera components
runtime.init_args.callbackslistOptional runtime callbacks

InferenceConfig

yaml
model:
  class_path: physicalai.inference.InferenceModel
  init_args:
    export_dir: ./exports/act_policy
    backend: openvino
    device: CPU

The most common inference fields are listed below.

FieldTypeDescription
modelComponentSpecInference model component
model.init_args.export_dirstringExported package directory
model.init_args.backendstringBackend name or auto
model.init_args.devicestringBackend device or auto

Config vs Manifest

SchemaUse
Workflow configA workflow config describes a workflow before execution.
ManifestA manifest describes an exported package after export.