genkit_foundation_models 0.0.5
genkit_foundation_models: ^0.0.5 copied to clipboard
Genkit provider for Apple's on-device Foundation Models.
0.0.5 #
- Added native Foundation Models tool capture so Genkit tools map through structured Apple tool calls instead of prompt-only tool-call text.
- Added transcript mapping for prior model tool calls and tool responses.
- Made tool-response follow-up turns omit tools by default so the model answers from tool output instead of looping through unrelated tools.
- Added
foundationModelsToolLoopMode: chainedto opt into keeping tools available after tool responses. - Added example safeguards for todo write tools.
- Added private bridge support for native reasoning/debug metadata, response
custom/rawdata, and chunkcustomdata. - Added private bridge support for native token usage through Genkit
GenerationUsagewhen the SDK exposes usage data. - Added example debug visibility for missing or reported native token usage.
- Hardened final-answer prompts so tool output is treated as untrusted data while preserving the full transcript.
0.0.4 #
- Fixed cumulative streamed Foundation Models snapshots so inline tool calls are converted to Genkit tool requests instead of visible text.
- Fixed streams that end after a tool-call chunk without a native final response.
0.0.3 #
- Fixed streamed tool-call parsing so split native tool-call output is converted to Genkit tool requests instead of visible text.
- Added support for
genkit: ^0.14.1.
0.0.2 #
- Added the
foundationModelsplugin facade for provider-style Genkit setup. - Added the
FoundationModels.isAvailable()facade and hid Pigeon transport types from the public API. - Improved unsupported-platform handling so availability checks return
falsewithout exposing platform-channel details. - Added public API documentation for pub.dev scoring.
0.0.1 #
- Initial release with Apple Foundation Models text generation for Genkit.
- Added streaming responses, multi-turn conversation support, and Genkit-owned tool loops through formatted tool-call output.
- Added shared Darwin Flutter plugin support for iOS and macOS with Swift Package Manager and CocoaPods fallback.