pub struct RenderChartTool;Expand description
Tool for rendering charts and data visualizations.
Creates interactive charts to display data trends, comparisons, and distributions. Supports multiple chart types and customizable axis labels, legends, and colors.
§Chart Types
bar: Vertical bar chart (default)line: Line chart for trendsarea: Filled area chartpie: Pie chart for distributions
§Example JSON Parameters
{
"title": "Monthly Sales",
"type": "line",
"data": [
{ "month": "Jan", "sales": 100 },
{ "month": "Feb", "sales": 150 },
{ "month": "Mar", "sales": 120 }
],
"x_key": "month",
"y_keys": ["sales"]
}Implementations§
Trait Implementations§
Source§impl Default for RenderChartTool
impl Default for RenderChartTool
Source§impl Tool for RenderChartTool
impl Tool for RenderChartTool
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 RenderChartTool
impl RefUnwindSafe for RenderChartTool
impl Send for RenderChartTool
impl Sync for RenderChartTool
impl Unpin for RenderChartTool
impl UnsafeUnpin for RenderChartTool
impl UnwindSafe for RenderChartTool
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