AiProvider class abstract

Abstract interface for a future AI provider.

The deterministic Flutter Doctor works fully WITHOUT an AI provider. This interface exists purely as a design contract for Phase 10+.

Implementations MUST:

  • Accept an AiContext (never raw source code or full diagnostics).
  • Return a structured AiResponse.
  • Not modify the target Flutter project in any way.
  • Not make assumptions beyond what AiContext contains.

Do NOT implement any concrete provider until Phase 10.

Implementers

Constructors

AiProvider()

Properties

hashCode int
The hash code for this object.
no setterinherited
name String
Human-readable name for this provider (e.g., 'Gemini', 'OpenAI GPT-4o').
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

analyze(AiContext context) Future<AiResponse>
Sends the structured AiContext to the AI provider and returns a response.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited