ai_sdk_dart 1.0.0+1
ai_sdk_dart: ^1.0.0+1 copied to clipboard
Core AI SDK for Dart with provider-agnostic model APIs.
1.0.0+1 #
- Improved pubspec descriptions for better pub.dev discoverability.
- Added
example/example.mdwith usage examples and links to runnable apps.
1.0.0 #
First stable release. Package renamed from ai → ai_sdk_dart to avoid conflicts with existing pub.dev packages.
Core APIs #
generateText/streamTextwith full v6 result parity — text, finishReason, usage, steps, toolCalls, toolResults, reasoning, sources, files, providerMetadata, request/response envelopes.generateObject/streamObjectwithOutput.text/object/array/choice/jsonAPI.embed/embedManywithcosineSimilarity.generateImage,generateSpeech,transcribe,rerank.
Agentic Tools #
- Multi-step tool loop with
maxSteps,stopConditions, andprepareStep. - Typed tool definitions (
tool<INPUT, OUTPUT>,dynamicTool,Schema<T>). - Tool choice controls (
ToolChoiceAuto,ToolChoiceRequired,ToolChoiceNone,ToolChoiceSpecific). - Tool approval flow (
needsApproval) andToolLoopAgentfor autonomous agentic loops.
Middleware & Registry #
- Middleware system:
wrapLanguageModel,extractReasoningMiddleware,extractJsonMiddleware,simulateStreamingMiddleware,defaultSettingsMiddleware,addToolInputExamplesMiddleware. createProviderRegistry— resolve models by'provider:modelId'string at runtime.
Streaming #
smoothStream/experimentalTransformstream transform hooks.- Full
fullStreamevent taxonomy — 22 typedStreamTextEventsubtypes. - Lifecycle callbacks:
onFinish,onStepFinish,onChunk,onError,experimentalOnStart,experimentalOnStepStart.
Other #
- Complete
AiSdkErrorsealed class hierarchy. - Utilities:
generateId,createIdGenerator,simulateReadableStream. - 230-test conformance suite covering all public APIs and provider wire formats.
0.2.0 #
- Initial release.
generateText/streamTextwith full v6 result parity (text, finishReason, usage, steps, toolCalls, toolResults, reasoning, sources, files, providerMetadata, request/response envelopes).generateObject/streamObjectwithOutput.text/object/array/choice/jsonAPI.- Multi-step tool loop with
maxSteps,stopWhen, andprepareStep. - Typed tool definitions (
tool<INPUT, OUTPUT>,dynamicTool,Schema<T>). - Tool choice controls (
ToolChoiceAuto,ToolChoiceRequired,ToolChoiceNone,ToolChoiceSpecific). - Tool approval flow (
needsApproval). ToolLoopAgentfor autonomous agentic loops.- Middleware system (
wrapLanguageModel,extractReasoningMiddleware,extractJsonMiddleware,simulateStreamingMiddleware,defaultSettingsMiddleware,addToolInputExamplesMiddleware). embed/embedManywithcosineSimilarity.generateImage,generateSpeech,transcribe,rerankinterfaces.createProviderRegistryfor multi-provider model lookup.smoothStream/experimentalTransformstream transform hooks.- Full
fullStreamevent taxonomy (StreamTextEventhierarchy). - Lifecycle callbacks:
onFinish,onStepFinish,onChunk,onError,experimentalOnStart,experimentalOnStepStart,experimentalOnToolCallStart,experimentalOnToolCallFinish. - Complete error type hierarchy (
AiSdkErrorsubclasses). - Utility functions:
generateId,createIdGenerator,simulateReadableStream.