pub struct RealtimeAgent { /* private fields */ }Expand description
A real-time voice agent that implements the ADK Agent trait.
RealtimeAgent provides bidirectional audio streaming while maintaining
compatibility with the standard ADK agent ecosystem. It supports the same
callbacks, tools, and instruction patterns as LlmAgent.
Implementations§
Source§impl RealtimeAgent
impl RealtimeAgent
Sourcepub fn builder(name: impl Into<String>) -> RealtimeAgentBuilder
pub fn builder(name: impl Into<String>) -> RealtimeAgentBuilder
Create a new builder.
Sourcepub fn instruction(&self) -> Option<&String>
pub fn instruction(&self) -> Option<&String>
Get the static instruction, if set.
Sourcepub fn vad_config(&self) -> Option<&VadConfig>
pub fn vad_config(&self) -> Option<&VadConfig>
Get the VAD configuration, if set.
Trait Implementations§
Source§impl Agent for RealtimeAgent
impl Agent for RealtimeAgent
fn name(&self) -> &str
fn description(&self) -> &str
fn sub_agents(&self) -> &[Arc<dyn Agent>]
fn run<'life0, 'async_trait>(
&'life0 self,
ctx: Arc<dyn InvocationContext>,
) -> Pin<Box<dyn Future<Output = Result<EventStream>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Auto Trait Implementations§
impl Freeze for RealtimeAgent
impl !RefUnwindSafe for RealtimeAgent
impl Send for RealtimeAgent
impl Sync for RealtimeAgent
impl Unpin for RealtimeAgent
impl UnsafeUnpin for RealtimeAgent
impl !UnwindSafe for RealtimeAgent
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more