PackageTrack
Sign in Get early access

ai_plus

A production-ready, provider-agnostic AI SDK for Dart & Flutter.

0.0.1 nisargratani/ai_plus

What this package is like to depend on

Last release 6 days ago

18 Aug 2026

Too new to tell

only 1 dated releases

Nearly every release is documented

notes for 1 of 1 stable releases

Nothing withdrawn

no release was ever pulled

0 months old

1 releases · first in 2026

1 release in the last 12 months

see the full history below

Release timeline

1 releases · Aug 2026 to Aug 2026
Release Pre-release

Releases

latest 1
  1. 0.0.1 18 Aug 2026
    Release notes

    Initial Release

    Core

    • AiClient — primary orchestrator with middleware pipeline
    • AiProvider — abstract provider interface with factory constructors
    • AiRequest / AiResponse / AiStreamChunk — core data models
    • AiCapabilities — runtime capability introspection

    Providers

    • OpenAiProvider — full support: chat, streaming, tool calling, structured output, embeddings, image input
    • GeminiProvider — full support: chat, streaming, tool calling, structured output, embeddings, multimodal
    • AnthropicProvider — chat, streaming, tool calling, image input
    • CustomProvider — any OpenAI-compatible endpoint (Ollama, LocalAI, Azure, Groq, etc.)

    Models

    • AiMessage — factory constructors for all roles (system, developer, user, assistant, tool)
    • AiContent — sealed hierarchy: text, image, audio, file, tool call, tool result
    • AiUsage, AiFinishReason, AiModel

    Features

    • Tool CallingAiTool definition with schema + auto-execution via ToolExecutor
    • Structured OutputAiJsonSchema + ai.generate<T>() with native provider support
    • Streaming — SSE parsing with buffering for all providers
    • ConversationsAiConversation with auto-managed history, streaming support
    • Conversation StorageAiConversationStorage interface + InMemoryConversationStorage
    • EmbeddingsAiEmbeddingService with single and batch support
    • RAGAiKnowledgeBase with ingest(), search(), ask()
    • Vector StoreAiVectorStore interface + MemoryVectorStore with cosine similarity
    • Autonomous AgentsAiAgent with tool loop, instructions, max iterations

    Middleware & Production

    • AiRetryPolicy — exponential backoff with jitter
    • RetryMiddleware — automatic retry on transient failures
    • CacheMiddleware + MemoryAiCache — response caching with TTL
    • LoggingMiddleware + ConsoleAiLogger — debug and info logging
    • MetricsMiddleware — request count, error count, latency tracking

    Utilities

    • AiPromptTemplate{{variable}} template rendering with validation
    • AiCostTracker + AiPricing — token usage and cost estimation

    Error Handling

    • Complete exception hierarchy extending AiException:
      AiAuthenticationException, AiAuthorizationException, AiRateLimitException,
      AiNetworkException, AiTimeoutException, AiInvalidRequestException,
      AiProviderException, AiParsingException, AiContentFilterException,
      AiUnsupportedCapabilityException, AiStructuredOutputException,
      AiToolNotFoundException, AiToolException

    Quality

    • 146 unit tests covering all modules
    • Zero dart analyze issues
    • Comprehensive DartDoc on all public APIs
    • MIT License
    Open source →

Every package, every release, already written down.

The archive is open and free. Watching your own project is what we are building next.

Browse the archive