Protobuf and gRPC messages exposed to the Vector Python SDK.


This package is provided to understand the messages passed between the SDK and Vector, and it should not be necessary for writing code that uses the SDK.

from anki_vector.messaging import client, protocol

async def send_version_request(interface: client.ExternalInterfaceStub, client_version, min_host_version):
    """This function needs to be executed and awaited in the same event loop
    as the interface is created.
    # Create a protocol version request message
    version = protocol.ProtocolVersionRequest(client_version=client_version,

    # Send the protocol version to the external interface and await the result
    protocol_version = await interface.ProtocolVersion(version)

For information about individual messages and their parameters, see the protobuf documentation.