Skip to main content

agentic_tools_generator 0.3.1 copy "agentic_tools_generator: ^0.3.1" to clipboard
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 FunctionTool for each top-level function annotated with @ToolFunction, and an agentTools extension 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, and Map<String, Object?>. Nullable and defaulted parameters are optional, and defaults appear in the schema. ToolInvocation, AgenticContext and CancellationToken parameters are supplied by the framework.
  • Converts return values: String, ToolResult, Map, classes with toJson(), lists, numbers, booleans and void.
  • 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.
0
likes
150
points
429
downloads

Documentation

Documentation
API reference

Publisher

unverified uploader

Weekly Downloads

Generates agentic_tools tools from annotated Dart functions: the JSON schema, argument reading and result conversion, checked at build time.

Repository (GitHub)
View/report issues
Contributing

Topics

#ai #agents #codegen #build-runner #agentic

License

MIT (license)

Dependencies

analyzer, build, source_gen

More

Packages that depend on agentic_tools_generator