flutter_ai_tools 0.1.0
flutter_ai_tools: ^0.1.0 copied to clipboard
Provider-neutral tool calling for flutter_ai: declare tools with executors, run tool calls into results, and expose web search as a tool — all in pure Dart with no Flutter dependency.
Changelog #
0.1.0 #
Initial release.
ToolSpec— a tool declaration (name,description, JSON-SchemaparametersSchema) plus an optional client-sideexecute;toDefinition()yields the model-facingToolDefinition.ToolRegistry— registers tools, exposes theirdefinitionsfor a provider, andruns aToolCallPartinto aToolResultPart, capturing unknown tools and thrown executors as error results instead of crashing.WebSearchAdapter+webSearchTool+SearchResult— expose any web-search backend as a callable tool.- Pure Dart; re-exports
flutter_ai_core.