Flutter Gemma Function Calling

Use when adding function calling (tool calling) to a flutter_gemma chat — letting an on-device model call the app's own Dart functions, declaring Tool objects, handling FunctionCallResponse or ParallelFunctionCallResponse, returning results with Message.toolResponse, or running the built-in tool loop generateChatResponseWithTools. Also use when the model describes an action in prose instead of calling the tool, raw tool-call markers appear in the reply text, or a switch over ModelResponse fails to compile. For plain chat, use flutter-gemma-inference. Not for flutter_gemma_agent, which gives the on-device model SKILL.md skills of its own.

denisovav d335fd7 5.1 KB Updated

File contents

denisovav/flutter_gemma/tree/main/packages/flutter_gemma/skills/flutter-gemma-function-calling commit d335fd7b07

Frequently asked questions

npx skillmds@latest add denisovav/flutter-gemma-function-calling