Skip to content

Devanshv17/genesis_ai

Repository files navigation

genesis_ai_sdk

pub.dev License: MIT Pub Points

A universal Flutter SDK for building AI agents locally and in the cloud. One unified API for 7 AI providers with tool calling, persistent memory, and safety guardrails built in.

Features

7 AI Providers — Gemini, OpenAI, Claude, HuggingFace, Ollama, on-device Gemma, GGUF
Tool Calling — Full ReAct loop implementation with step callbacks
Memory — In-process (InMemoryStore) or persistent (HiveMemoryStore)
Safety — Prompt injection detection, PII redaction, rate limiting
Smart Routing — Automatic fallback, privacy-aware routing
Cross-Platform — Android, iOS, macOS, Windows, Linux, Web
On-Device & Cloud — Run locally with Gemma/GGUF or use cloud APIs

Installation

Add to your pubspec.yaml:

dependencies:
  genesis_ai_sdk: ^0.1.1

Then run:

flutter pub get

View on pub.dev: https://pub.dev/packages/genesis_ai_sdk

Quick Start

import 'package:genesis_ai_sdk/genesis_ai_sdk.dart';

final agent = GenesisAgent(
  provider: GeminiProvider(apiKey: 'YOUR_KEY'),
  systemPrompt: 'You are a helpful assistant.',
  tools: [GenesisTools.calculator, GenesisTools.dateTime],
);

final response = await agent.chat('What is 1337 * 42, and what day is it?');
print(response);

The agent figures out which tool to call and returns the answer automatically.

Documentation

Examples

  • example/ — Full example app demonstrating all features

Platform Support

Platform Cloud Ollama Gemma GGUF
Android
iOS ⚠️
macOS
Windows
Web
Linux

Roadmap

  • genesis_ai_ui — Flutter UI components for AI responses
  • genesis_ai_tools — Device tools (camera, location, contacts, clipboard)
  • Semantic memory with vector search
  • Mistral, Groq, Cohere providers

License

MIT License — see LICENSE

Contributing

Contributions welcome! Please open an issue or pull request.


Built with ❤️ for Flutter developers
pub.devDocsGitHub

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors