flutter_ai_core 0.1.0
flutter_ai_core: ^0.1.0 copied to clipboard
Dependency-free Dart foundation for AI chat: message and conversation models, a streaming MessageProcessor with granular mutations, and the provider and renderer contracts the rest of the flutter_ai f [...]
Changelog #
0.1.0 #
Initial release.
- Models:
AiConversation,AiMessage,AiMessageStatus,AiRole,FinishReason, and the sealedAiParthierarchy (TextPart,ReasoningPart,ToolCallPart,ToolResultPart,FilePart,SourcePart,DataPart) with manual JSON serialization and value equality. - Streaming: sealed
AiStreamEventset,MessageProcessorreducer with granularMutationResults, and the tolerantJsonAccumulatorfor partial tool-call arguments. - Contracts:
LlmProvider,TextRenderer,AiRequestOptions,ToolDefinition. - Zero runtime dependencies (
dart:core+dart:convertonly).