viam.proto.app.agent
@generated by Viam. Do not edit manually!
Classes
Helper class that provides a standard way to create an ABC using |
|
Helper class that provides a standard way to create an ABC using |
|
Device side |
|
Abstract base class for protocol messages. |
|
DEPRECATED as of January 2025 |
|
Abstract base class for protocol messages. |
|
Abstract base class for protocol messages. |
|
Abstract base class for protocol messages. |
Package Contents
- class viam.proto.app.agent.AgentDeviceServiceBase[source]
Bases:
abc.ABCHelper class that provides a standard way to create an ABC using inheritance.
- abstractmethod DeviceAgentConfig(stream: grpclib.server.Stream[app.agent.v1.agent_pb2.DeviceAgentConfigRequest, app.agent.v1.agent_pb2.DeviceAgentConfigResponse]) None[source]
- Async:
- class viam.proto.app.agent.AgentDeviceServiceStub(channel: grpclib.client.Channel)[source]
- DeviceAgentConfig
- class viam.proto.app.agent.UnimplementedAgentDeviceServiceBase[source]
Bases:
AgentDeviceServiceBaseHelper class that provides a standard way to create an ABC using inheritance.
- async DeviceAgentConfig(stream: grpclib.server.Stream[app.agent.v1.agent_pb2.DeviceAgentConfigRequest, app.agent.v1.agent_pb2.DeviceAgentConfigResponse]) None[source]
- class viam.proto.app.agent.DeviceAgentConfigRequest(*, id: str = ..., host_info: Global___HostInfo | None = ..., subsystem_versions: collections.abc.Mapping[str, str] | None = ..., version_info: Global___VersionInfo | None = ..., agent_uptime: google.protobuf.duration_pb2.Duration | None = ..., viam_server_uptime: google.protobuf.duration_pb2.Duration | None = ...)
Bases:
google.protobuf.message.MessageDevice side
- class SubsystemVersionsEntry(*, key: str = ..., value: str = ...)
Bases:
google.protobuf.message.MessageAbstract base class for protocol messages.
Protocol message classes are almost always generated by the protocol compiler. These generated types subclass Message and implement the methods shown below.
- key: str
- value: str
- id: str
robot partID
- host_info() Global___HostInfo
info about the host system
- subsystem_versions() google.protobuf.internal.containers.ScalarMap[str, str]
current subsystems and versions DEPRECATED in favor of version_info
- version_info() Global___VersionInfo
Currently installed versions for agent and viam-server
- agent_uptime() google.protobuf.duration_pb2.Duration
how long viam-agent has been running since its most recent start
- viam_server_uptime() google.protobuf.duration_pb2.Duration
how long viam-server has been running since its most recent start (omitted if not running)
- HasField(field_name: _HasFieldArgType) bool
Checks if a certain field is set for the message.
For a oneof group, checks if any field inside is set. Note that if the field_name is not defined in the message descriptor,
ValueErrorwill be raised.- Parameters:
field_name (str) – The name of the field to check for presence.
- Returns:
Whether a value has been set for the named field.
- Return type:
bool
- Raises:
ValueError – if the field_name is not a member of this message.
- class viam.proto.app.agent.DeviceAgentConfigResponse(*, subsystem_configs: collections.abc.Mapping[str, Global___DeviceSubsystemConfig] | None = ..., check_interval: google.protobuf.duration_pb2.Duration | None = ..., agent_update_info: Global___UpdateInfo | None = ..., viam_server_update_info: Global___UpdateInfo | None = ..., advanced_settings: google.protobuf.struct_pb2.Struct | None = ..., network_configuration: google.protobuf.struct_pb2.Struct | None = ..., additional_networks: google.protobuf.struct_pb2.Struct | None = ..., system_configuration: google.protobuf.struct_pb2.Struct | None = ...)
Bases:
google.protobuf.message.MessageAbstract base class for protocol messages.
Protocol message classes are almost always generated by the protocol compiler. These generated types subclass Message and implement the methods shown below.
- class SubsystemConfigsEntry(*, key: str = ..., value: Global___DeviceSubsystemConfig | None = ...)
Bases:
google.protobuf.message.MessageAbstract base class for protocol messages.
Protocol message classes are almost always generated by the protocol compiler. These generated types subclass Message and implement the methods shown below.
- key: str
- value() Global___DeviceSubsystemConfig
- HasField(field_name: _HasFieldArgType) bool
Checks if a certain field is set for the message.
For a oneof group, checks if any field inside is set. Note that if the field_name is not defined in the message descriptor,
ValueErrorwill be raised.- Parameters:
field_name (str) – The name of the field to check for presence.
- Returns:
Whether a value has been set for the named field.
- Return type:
bool
- Raises:
ValueError – if the field_name is not a member of this message.
- subsystem_configs() google.protobuf.internal.containers.MessageMap[str, Global___DeviceSubsystemConfig]
subsystems to be installed/configured/updated note: previously installed subsystems will be removed from the system if removed from this list DEPRECATED in favor of indidivual update_info and settings fields
- check_interval() google.protobuf.duration_pb2.Duration
how often this request should be repeated
- agent_update_info() Global___UpdateInfo
update info for agent and viam-server, parsed/processed in App
- viam_server_update_info() Global___UpdateInfo
- advanced_settings() google.protobuf.struct_pb2.Struct
various settings that are passed directly to device Agent
- network_configuration() google.protobuf.struct_pb2.Struct
- additional_networks() google.protobuf.struct_pb2.Struct
- system_configuration() google.protobuf.struct_pb2.Struct
- HasField(field_name: _HasFieldArgType) bool
Checks if a certain field is set for the message.
For a oneof group, checks if any field inside is set. Note that if the field_name is not defined in the message descriptor,
ValueErrorwill be raised.- Parameters:
field_name (str) – The name of the field to check for presence.
- Returns:
Whether a value has been set for the named field.
- Return type:
bool
- Raises:
ValueError – if the field_name is not a member of this message.
- class viam.proto.app.agent.DeviceSubsystemConfig(*, update_info: Global___UpdateInfo | None = ..., disable: bool = ..., force_restart: bool = ..., attributes: google.protobuf.struct_pb2.Struct | None = ...)
Bases:
google.protobuf.message.MessageDEPRECATED as of January 2025
- disable: bool
if this subsystem is disabled and should not be started by the agent
- force_restart: bool
force_restart will restart the subsystem, even if no updates are available
- update_info() Global___UpdateInfo
data needed to download/validate the subsystem
- attributes() google.protobuf.struct_pb2.Struct
arbitrary config sections
- HasField(field_name: _HasFieldArgType) bool
Checks if a certain field is set for the message.
For a oneof group, checks if any field inside is set. Note that if the field_name is not defined in the message descriptor,
ValueErrorwill be raised.- Parameters:
field_name (str) – The name of the field to check for presence.
- Returns:
Whether a value has been set for the named field.
- Return type:
bool
- Raises:
ValueError – if the field_name is not a member of this message.
- class viam.proto.app.agent.HostInfo(*, platform: str = ..., distro: str = ..., tags: collections.abc.Iterable[str] | None = ...)
Bases:
google.protobuf.message.MessageAbstract base class for protocol messages.
Protocol message classes are almost always generated by the protocol compiler. These generated types subclass Message and implement the methods shown below.
- platform: str
linux/amd64, darwin/arm64
- Type:
platform is the docker styled combination of kernel and architecture. Ex
- distro: str
22.04, debian:11
- Type:
ID and VERSION_ID fields from /etc/os-release, colon seperated. Ex
- Type:
ubuntu
- tags() google.protobuf.internal.containers.RepeatedScalarFieldContainer[str]
additional tags for specific hardware or software that’s present and may affect software selection ex: “jetson”, “rpi4”, “systemd”, etc.
- class viam.proto.app.agent.PackageFormat
Bases:
_PackageFormat
- class viam.proto.app.agent.UpdateInfo(*, filename: str = ..., url: str = ..., version: str = ..., sha256: bytes = ..., format: Global___PackageFormat = ...)
Bases:
google.protobuf.message.MessageAbstract base class for protocol messages.
Protocol message classes are almost always generated by the protocol compiler. These generated types subclass Message and implement the methods shown below.
- filename: str
unpacked filename as it is expected on disk (regardless of url)
- url: str
url to download from
- version: str
version expected at the url
- sha256: bytes
sha256 sum of file as downloaded
- format: Global___PackageFormat
determines if decompression or executable permissions are needed
- class viam.proto.app.agent.VersionInfo(*, agent_running: str = ..., agent_installed: str = ..., viam_server_running: str = ..., viam_server_installed: str = ...)
Bases:
google.protobuf.message.MessageAbstract base class for protocol messages.
Protocol message classes are almost always generated by the protocol compiler. These generated types subclass Message and implement the methods shown below.
- agent_running: str
the version of agent currently running and making the request
- agent_installed: str
the version of agent installed (will run after restart if different)
- viam_server_running: str
the version of viam-server currently running
- viam_server_installed: str
the version of viam-server installed (will run after restart if different)