Skip to main content

VisualObserver

Trait VisualObserver 

Source
pub trait VisualObserver: Send + Sync {
    // Required method
    fn observe_visual<'life0, 'async_trait>(
        &'life0 self,
    ) -> Pin<Box<dyn Future<Output = Result<Value, AdkError>> + Send + 'async_trait>>
       where 'life0: 'async_trait,
             Self: 'async_trait;
}
Available on crate features stream and vision only.
Expand description

A source of computer-use observations: the observe_visual half of adk_computer_use::ComputerUseRuntime, which a computer-use-mcp runtime answers with a snapshot.

With feature computer-use, RuntimeObserver implements it over any adk_computer_use::ComputerUseRuntime, and screen_source builds the ScreenSource.

Required Methods§

Source

fn observe_visual<'life0, 'async_trait>( &'life0 self, ) -> Pin<Box<dyn Future<Output = Result<Value, AdkError>> + Send + 'async_trait>>
where 'life0: 'async_trait, Self: 'async_trait,

One fresh visual observation, as JSON holding a screenshot.

§Errors

The runtime’s error.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§