llm_tool_calling 0.4.0 copy "llm_tool_calling: ^0.4.0" to clipboard
llm_tool_calling: ^0.4.0 copied to clipboard

discontinuedreplaced by: llm_tool

Turn Dart functions into LLM tools for OpenAI, Gemini and Claude. Annotate with @Tool to generate the JSON schema, argument validation and type-safe dispatch.

0.4.0 #

  • withoutAdditionalProperties(schema): a copy of a schema for SDKs that send it to Gemini's older parameters field, which rejects additionalProperties.
  • Tool names are documented as up to 63 characters (the firebase_ai limit).
  • README: "Use with your SDK" section, with the new llm_tool_calling_firebase_ai adapter.

0.3.0 #

  • No code changes. Released together with llm_tool_calling_generator 0.3.0, which generates a list of all tools in each file.
  • README: the list of all tools, and an author section.

0.2.0 #

  • validateArguments() checks nested objects (fields with properties), reporting paths like booking.passengers[0].age is required.
  • validateArguments() checks every item of an array against items, reporting paths like tags[2] and grid[1][0].
  • validateArguments() checks enum lists and reports the allowed values, e.g. unit must be one of "celsius", "fahrenheit", got "kelvin".

0.1.0 #

  • Initial release.
  • @Tool and @Param annotations.
  • ToolDefinition with name, description, JSON schema, requiresConfirmation and call(), which validates arguments before running the tool.
  • validateArguments(): checks required, unknown and wrongly typed arguments and reports every problem at once. Whole numbers sent as 5.0 are accepted for integer.
  • ToolArgumentException with a message an LLM can use to fix its call.
0
likes
0
points
--
downloads

Publisher

verified publisheramitgp.dev

Weekly Downloads

Turn Dart functions into LLM tools for OpenAI, Gemini and Claude. Annotate with @Tool to generate the JSON schema, argument validation and type-safe dispatch.

Repository (GitHub)
View/report issues

Topics

#llm #tool-calling #function-calling #ai-agents #codegen

License

unknown (license)

More

Packages that depend on llm_tool_calling