Skip to content
pubscout

agenix

4.1.2, released 5 months ago by ahmadexe.dev

Flutter framework for building AI agents with tools and multi-agent orchestration

WASM-ready
$ flutter pub add agenix
Source repository

What it does

Agenix lets you define agents that can use LLMs, invoke tools, and delegate tasks to other agents. It supports multiple LLM providers and includes a memory store and tool registry.

AI-written summary of version 4.1.2, based on the package's README and metadata. Report an inaccuracy

Use it when

  • building AI assistants
  • prototyping agent workflows
  • implementing multi-agent orchestration

Skip it when

  • needing built‑in persistent storage for production
  • requiring a companion package for persistence

Strengths

  • multi‑provider LLM support
  • tool loop hardening to avoid duplicate side effects
  • clear idempotency contract for side‑effecting tools

Weaknesses

  • no built‑in persistence (requires agenix_firebase for Firebase)
  • larger dependency footprint due to LLM adapters

Setup

Kind
Flutter widgets
Effort
Medium
Code generation
No
Direct dependencies
3

Add agenix to pubspec, optionally add agenix_firebase for persistence. No build_runner or native permissions required.

import 'package:agenix/agenix.dart';

final agent = await Agent.create(
  dataStore: DataStore.inMemory(),
  llm: LLM.geminiLLM(apiKey: 'YOUR_API_KEY', modelName: 'gemini-2.0-flash'),
  name: 'Assistant',
  role: 'General purpose assistant',
);

final response = await agent.generateResponse(
  convoId: 'conversation-1',
  userMessage: AgentMessage(content: 'What is the weather like today?', isFromAgent: false, generatedAt: DateTime.now()),
);
print(response.content);

Alternatives

Packages that do the same job and could replace agenix.

  • langchain

    A Dart/Flutter library for building LLM‑powered applications with LangChain patterns.

  • dart_agent_core

    Mobile-first Dart library for building stateful, tool-using AI agents with LLM and MCP support.

  • colorist_ui

    A Flutter library of UI components for an LLM codelab.

Works with

Packages commonly used together with agenix: ones it builds on, ones built on it, and its own family.