openagents_sdk::agents::voice
The account's saved agent and chat used for voice conversations.
| Item | What it does |
|---|---|
SetVoiceAgent struct | A retryable change to the account's voice choice. |
VoiceAgent struct | The current voice choice. |
VoiceTarget struct | A 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.