akashi_google 0.3.1 copy "akashi_google: ^0.3.1" to clipboard
akashi_google: ^0.3.1 copied to clipboard

Google Gemini provider adapter for the Akashi agent framework: wraps googleai_dart behind Akashi's LanguageModel contract, with structured output, tool calls, and embeddings.

akashi_google #

Google Gemini provider adapter for the Akashi agent framework. Wraps googleai_dart behind Akashi's LanguageModel contract.

import 'dart:io';

import 'package:akashi/akashi.dart';
import 'package:akashi_google/akashi_google.dart';

void main() async {
  final provider = GoogleProvider(
    apiKey: Platform.environment['GEMINI_API_KEY']!,
  );

  final agent = ToolLoopAgent(
    model: provider.languageModel('gemini-2.5-flash'),
    instructions: 'You are a terse assistant.',
  );

  await for (final event in agent.stream('Say hello in three languages.')) {
    if (event is TextDelta) stdout.write(event.text);
  }
}

Tool calling, streaming, and stop conditions all come from the core akashi package — this adapter only translates between Akashi's provider contract and the Gemini API.

Status #

v0.3.

License #

MIT.

0
likes
160
points
128
downloads

Documentation

API reference

Publisher

unverified uploader

Weekly Downloads

Google Gemini provider adapter for the Akashi agent framework: wraps googleai_dart behind Akashi's LanguageModel contract, with structured output, tool calls, and embeddings.

Repository (GitHub)
View/report issues

Topics

#ai #agents #llm #gemini

License

MIT (license)

Dependencies

akashi, googleai_dart

More

Packages that depend on akashi_google