PackageTrack
Sign in Get early access

dartantic_interface

Interface definitions for dartantic_ai for use in building custom providers.

4.0.1 3.3K downloads/mo #4503 most downloaded on pub.dev csells/dartantic_ai

What this package is like to depend on

Last release 1 months ago

02 Jul 2026

Ships fairly regularly

a new release about every 6 weeks

Nearly every release is documented

notes for 12 of 12 stable releases

Nothing withdrawn

no release was ever pulled

1 years old

12 releases · first in 2025

9 releases in the last 12 months

see the full history below

Release timeline

12 releases · Jul 2025 to Jul 2026
2026
Release Pre-release

Releases

latest 12
  1. 4.0.1 02 Jul 2026
    Release notes

    Dependencies

    • Updated genai_primitives, json_schema_builder, meta, and uuid dependency constraints to their latest compatible releases.
    Open source →
  2. 4.0.0 29 Mar 2026
    Release notes

    Breaking change: ModelKind.video

    Added ModelKind.video for classifying video generation models in provider discovery and defaults. Exhaustive switches on ModelKind must include this value (or a default branch).

    Open source →
  3. 3.0.0 25 Jan 2026
    Release notes

    Streaming Thinking via ChatResult.thinking

    Added optional thinking field to ChatResult for streaming thinking content. During streaming, thinking deltas are delivered via chunk.thinking for real-time display, while the consolidated ThinkingPart appears in final messages for history.

    Breaking Change: Migrated to genai_primitives Types

    Core message and part types are now provided by the genai_primitives package and re-exported from dartantic_interface. This provides better interoperability with other GenAI tooling in the Dart ecosystem.

    Types re-exported from genai_primitives:

    • ChatMessage, ChatMessageRole
    • StandardPart, TextPart, DataPart, LinkPart, ThinkingPart
    • ToolPart, ToolPartKind
    • ToolDefinition

    Part Type Alias (genai_primitives 0.2.0 compatibility)

    In genai_primitives 0.2.0, the Part type hierarchy was reorganized:

    • Part became the extendable base class
    • StandardPart is the sealed class containing built-in part types

    Dartantic provides Part as a typedef alias for StandardPart, so existing code continues to work unchanged. If you need to create a custom Part that extends the base class, import genai_primitives directly:

    import 'package:genai_primitives/genai_primitives.dart' as gaip;
    class MyCustomPart extends gaip.Part { ... }
    

    Breaking Change: Migrated to json_schema_builder for Schemas

    The Schema type is now provided by the json_schema_builder package. Use the S builder class for constructing schemas:

    import 'package:dartantic_interface/dartantic_interface.dart';
    
    // Build schemas with S.*
    final schema = S.object(properties: {
      'name': S.string(description: 'User name'),
      'age': S.integer(minimum: 0),
    });
    

    New: ThinkingPart for Extended Reasoning

    Added ThinkingPart to represent extended thinking/reasoning content from LLMs. This provides a unified representation across providers that support thinking (OpenAI Responses, Anthropic, Google).

    New Convenience Extensions

    Added MessagePartHelpers extension on Iterable<Part>:

    • thinkingParts - extracts all ThinkingPart instances
    • thinkingText - concatenates all thinking text
    Open source →
  4. 2.0.0 11 Dec 2025
    Release notes
    • BREAKING: Removed ProviderCaps enum from the interface. Provider capabilities were only meaningful for testing default models and provided no provider-wide guarantees. Capability filtering for tests is now handled via ProviderTestCaps in dartantic_ai's test infrastructure. Consider the Provider.listModels method for run-time model details, e.g. chat, embedding, media, etc.
    • Removed caps field from Provider base class.
    Open source →
  5. 1.2.0 30 Oct 2025
    Release notes
    • added optional 'thinking' field to ChatResult for enhanced reasoning output
    • updated Provider to support thinking feature toggle
    Open source →
  6. 1.1.0 08 Oct 2025
    Release notes
    • ProviderCaps.vision => ProviderCaps.chatVision to tighten the meaning
    Open source →
  7. 1.0.5 04 Oct 2025
    Release notes
    • made usage nullable for when there is no usage.
    Open source →
  8. 1.0.4 01 Sep 2025
    Release notes
    • added ProviderCaps.thinking
    Open source →
  9. 1.0.3 01 Sep 2025
    Release notes
    • remove custom lint dependency
    Open source →
  10. 1.0.2 29 Jul 2025
    Release notes
    • fixed a compilation error on the web
    Open source →
  11. 1.0.1 28 Jul 2025
    Release notes
    • downgrading meta for wider compatibility
    Open source →
  12. 1.0.0 28 Jul 2025
    Release notes
    • initial release
    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