agentic_tools_generator 0.3.1
agentic_tools_generator: ^0.3.1 copied to clipboard
Generates agentic_tools tools from annotated Dart functions: the JSON schema, argument reading and result conversion, checked at build time.
Changelog #
0.3.1 #
- Updated package documentation for the published 0.3.x release line.
0.3.0 #
- Published with the 0.3.0 framework release. No additional public API changes.
0.2.0 #
Initial release.
- Generates a
FunctionToolfor each top-level function annotated with@ToolFunction, and anagentToolsextension getter for classes with annotated methods, bound to the instance. - Builds the JSON schema from parameters:
String,int,double,num,bool,DateTime, enums, lists of those, andMap<String, Object?>. Nullable and defaulted parameters are optional, and defaults appear in the schema.ToolInvocation,AgenticContextandCancellationTokenparameters are supplied by the framework. - Converts return values:
String,ToolResult,Map, classes withtoJson(), lists, numbers, booleans andvoid. - Fails the build, pointing at the source, for unsupported parameter or return types, a missing description, duplicate or invalid tool names, private or generic functions, generic classes, and missing imports.