llm_tool_generator 0.7.0
llm_tool_generator: ^0.7.0 copied to clipboard
Code generator for llm_tool. Turns @LlmTool-annotated Dart functions into LLM tools for OpenAI, Gemini, Claude and MCP, with JSON schemas and validation.
Use this package as a library
Depend on it
Run this command:
With Dart:
$ dart pub add llm_tool_generatorWith Flutter:
$ flutter pub add llm_tool_generatorThis will add a line like this to your package's pubspec.yaml (and run an implicit dart pub get):
dependencies:
llm_tool_generator: ^0.7.0Alternatively, your editor might support dart pub get or flutter pub get. Check the docs for your editor to learn more.
Import it
Now in your Dart code, you can use:
import 'package:llm_tool_generator/llm_tool_generator.dart';