Skip to content

openagents_sdk::agents::voice

The account's saved agent and chat used for voice conversations.

ItemWhat it does
SetVoiceAgent structA retryable change to the account's voice choice.
VoiceAgent structThe current voice choice.
VoiceTarget structA saved agent's chat, identified independently of its display name.

SetVoiceAgent

pub struct SetVoiceAgent {
    pub request_id: String,
    pub expected_revision: u64,
    pub target: Option<VoiceTarget>,
}

A retryable change to the account's voice choice.

VoiceAgent

pub struct VoiceAgent {
    pub revision: u64,
    pub target: Option<VoiceTarget>,
}

The current voice choice. Revision zero means no choice has been saved.

VoiceTarget

pub struct VoiceTarget {
    pub agent_id: String,
    pub chat_id: String,
    pub host_id: String,
}

A saved agent's chat, identified independently of its display name.

VoiceTarget::validate

pub fn validate(&self) -> bool

Checks that the agent, chat, and host IDs are bounded identifiers.