genkit_foundation_models 0.0.5 copy "genkit_foundation_models: ^0.0.5" to clipboard
genkit_foundation_models: ^0.0.5 copied to clipboard

PlatformiOSmacOS

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: chained to 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/raw data, and chunk custom data.
  • Added private bridge support for native token usage through Genkit GenerationUsage when 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 foundationModels plugin 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 false without 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.
1
likes
160
points
247
downloads

Documentation

API reference

Publisher

unverified uploader

Weekly Downloads

Genkit provider for Apple's on-device Foundation Models.

Repository (GitHub)
View/report issues

License

MIT (license)

Dependencies

flutter, genkit, meta

More

Packages that depend on genkit_foundation_models

Packages that implement genkit_foundation_models