llm_tool_calling 0.1.0
llm_tool_calling: ^0.1.0 copied to clipboard
LLM tool calling and function calling for Dart & Flutter. Annotate a function with @Tool and generate its JSON schema, validation, and dispatch.
0.1.0 #
- Initial release.
@Tooland@Paramannotations.ToolDefinitionwith name, description, JSON schema,requiresConfirmationandcall(), which validates arguments before running the tool.validateArguments(): checks required, unknown and wrongly typed arguments and reports every problem at once. Whole numbers sent as5.0are accepted forinteger.ToolArgumentExceptionwith a message an LLM can use to fix its call.