AiTextClient class abstract

Pluggable AI client interface to keep code testable and vendor-agnostic.

Implementers

Constructors

AiTextClient()

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

generateFieldValue({required FieldType fieldType, String? context, Duration timeout = const Duration(seconds: 15)}) Future<String>
Generate a single field value given a field "type" (e.g., name, email, bio, product_description).
generateImageUrl({required String prompt, Duration timeout = const Duration(seconds: 20)}) Future<Uri>
Generate an image URL given a prompt (you can return any fetchable image URL).
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