pub struct UiToolset { /* private fields */ }Available on crate feature
ui only.Expand description
A toolset containing all UI rendering tools.
Use this to easily add UI capabilities to an agent:
ⓘ
use adk_ui::UiToolset;
use adk_agent::LlmAgentBuilder;
let ui_tools = UiToolset::new().tools(&ctx).await?;
let agent = LlmAgentBuilder::new("assistant")
.tools(ui_tools)
.build()?;Implementations§
Source§impl UiToolset
impl UiToolset
Sourcepub fn forms_only() -> UiToolset
pub fn forms_only() -> UiToolset
Create a toolset with only form rendering
Sourcepub fn without_form(self) -> UiToolset
pub fn without_form(self) -> UiToolset
Disable form rendering
Sourcepub fn without_card(self) -> UiToolset
pub fn without_card(self) -> UiToolset
Disable card rendering
Sourcepub fn without_alert(self) -> UiToolset
pub fn without_alert(self) -> UiToolset
Disable alert rendering
Sourcepub fn without_confirm(self) -> UiToolset
pub fn without_confirm(self) -> UiToolset
Disable confirm rendering
Sourcepub fn without_table(self) -> UiToolset
pub fn without_table(self) -> UiToolset
Disable table rendering
Sourcepub fn without_chart(self) -> UiToolset
pub fn without_chart(self) -> UiToolset
Disable chart rendering
Sourcepub fn without_layout(self) -> UiToolset
pub fn without_layout(self) -> UiToolset
Disable layout rendering
Sourcepub fn without_progress(self) -> UiToolset
pub fn without_progress(self) -> UiToolset
Disable progress rendering
Sourcepub fn without_modal(self) -> UiToolset
pub fn without_modal(self) -> UiToolset
Disable modal rendering
Sourcepub fn without_toast(self) -> UiToolset
pub fn without_toast(self) -> UiToolset
Disable toast rendering
Trait Implementations§
Auto Trait Implementations§
impl Freeze for UiToolset
impl RefUnwindSafe for UiToolset
impl Send for UiToolset
impl Sync for UiToolset
impl Unpin for UiToolset
impl UnwindSafe for UiToolset
Blanket Implementations§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> FutureExt for T
impl<T> FutureExt for T
Source§fn with_context(self, otel_cx: Context) -> WithContext<Self>
fn with_context(self, otel_cx: Context) -> WithContext<Self>
Source§fn with_current_context(self) -> WithContext<Self>
fn with_current_context(self) -> WithContext<Self>
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request