pub struct RenderCardTool;Expand description
Tool for rendering information cards.
Creates styled card components to display content with optional action buttons. Cards are ideal for status updates, summaries, or any structured information.
§Example JSON Parameters
{
"title": "Welcome",
"description": "Getting started with your account",
"content": "Your account has been created successfully. Click below to continue.",
"actions": [
{ "label": "Get Started", "action_id": "start", "variant": "primary" }
]
}Implementations§
Trait Implementations§
Source§impl Default for RenderCardTool
impl Default for RenderCardTool
Source§impl Tool for RenderCardTool
impl Tool for RenderCardTool
fn name(&self) -> &str
fn description(&self) -> &str
fn parameters_schema(&self) -> Option<Value>
fn execute<'life0, 'async_trait>(
&'life0 self,
ctx: Arc<dyn ToolContext>,
args: Value,
) -> Pin<Box<dyn Future<Output = Result<Value>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Auto Trait Implementations§
impl Freeze for RenderCardTool
impl RefUnwindSafe for RenderCardTool
impl Send for RenderCardTool
impl Sync for RenderCardTool
impl Unpin for RenderCardTool
impl UnsafeUnpin for RenderCardTool
impl UnwindSafe for RenderCardTool
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