pub struct UiToolset { /* private fields */ }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() -> Self
pub fn forms_only() -> Self
Create a toolset with only form rendering
Sourcepub fn without_form(self) -> Self
pub fn without_form(self) -> Self
Disable form rendering
Sourcepub fn without_card(self) -> Self
pub fn without_card(self) -> Self
Disable card rendering
Sourcepub fn without_alert(self) -> Self
pub fn without_alert(self) -> Self
Disable alert rendering
Sourcepub fn without_confirm(self) -> Self
pub fn without_confirm(self) -> Self
Disable confirm rendering
Sourcepub fn without_table(self) -> Self
pub fn without_table(self) -> Self
Disable table rendering
Sourcepub fn without_chart(self) -> Self
pub fn without_chart(self) -> Self
Disable chart rendering
Sourcepub fn without_layout(self) -> Self
pub fn without_layout(self) -> Self
Disable layout rendering
Sourcepub fn without_progress(self) -> Self
pub fn without_progress(self) -> Self
Disable progress rendering
Sourcepub fn without_modal(self) -> Self
pub fn without_modal(self) -> Self
Disable modal rendering
Sourcepub fn without_toast(self) -> Self
pub fn without_toast(self) -> Self
Disable toast rendering