Tool definitions for AI chart generation.
These can be passed directly to LLM APIs that support function calling.
Example usage with Claude:
final response = await anthropic.messages.create(
model: 'claude-sonnet-4-20250514',
tools: ChartToolSchema.tools,
messages: [...],
);
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
toAnthropicFormat(
) → List< Map< String, dynamic> > - Returns the tool schema in Anthropic's format.
-
toOpenAIFormat(
) → List< Map< String, dynamic> > - Returns the tool schema in OpenAI's format.
Constants
-
createChartTool
→ const Map<
String, dynamic> - Tool for creating a new chart from data.
-
explainDataTool
→ const Map<
String, dynamic> - Tool for analyzing/explaining data patterns.
-
modifyChartTool
→ const Map<
String, dynamic> - Tool for modifying an existing chart.
-
surfaceDefinitions
→ const Map<
String, Object?> -
Structural JSON-Schema definitions for the config surface, keyed by
class name — GENERATED from the
@chartSurfaceannotations. -
tools
→ const List<
Map< String, dynamic> > - All available chart tools.