llm_tool 0.8.0
llm_tool: ^0.8.0 copied to clipboard
Turn Dart functions into LLM tools for OpenAI, Gemini, Claude and MCP. Annotate with @LlmTool to generate the JSON schema, argument validation and typed calls.
Use this package as a library
Depend on it
Run this command:
With Dart:
$ dart pub add llm_toolWith Flutter:
$ flutter pub add llm_toolThis will add a line like this to your package's pubspec.yaml (and run an implicit dart pub get):
dependencies:
llm_tool: ^0.8.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/llm_tool.dart';