llm_tool_calling_firebase_ai 0.2.0 copy "llm_tool_calling_firebase_ai: ^0.2.0" to clipboard
llm_tool_calling_firebase_ai: ^0.2.0 copied to clipboard

discontinuedreplaced by: llm_tool_firebase_ai

Use llm_tool_calling tools with Firebase AI Logic (firebase_ai). Turns generated tools into Gemini function declarations and runs the whole tool loop.

0.2.0 #

  • Uses ToolDefinition.invoke from llm_tool_calling 0.6.0, so tools behave the same with every SDK. ToolConfirmation now comes from llm_tool_calling (still available through this package).
  • If a tool throws during firebase_ai's automatic function calling, Gemini now gets a clear error.
  • Requires llm_tool_calling 0.6.0.

0.1.1 #

  • Works with llm_tool_calling 0.5.x (and still 0.3.x and 0.4.x).
  • Clearer package description: the adapter runs the whole tool loop.

0.1.0 #

  • Initial release.
  • chat.sendMessageWithTools(message, allTools) runs the whole tool loop. Tested live with gemini-3.8-flash.
  • toolResponses(results) sends tool results with the role user, because newer Gemini models reject the function role that firebase_ai's Content.functionResponses uses.
  • allTools.toFirebaseAiTool() for firebase_ai's own automatic function calling (fails with newer models until firebase_ai releases flutterfire#18685; see the README).
  • toFunctionDeclarations() and respondTo(functionCall) for manual function calling.
  • Arguments are validated before anything runs; errors go back to Gemini.
  • Tools with requiresConfirmation only run when a confirm callback approves them.
  • Tools with duplicate names are refused with an ArgumentError, instead of firebase_ai silently keeping only one.
  • Re-exports ToolDefinition, ToolArgumentException and the other runtime types, so a model-setup file only needs firebase_ai and this package.
  • toFirebaseJsonSchema() converts llm_tool_calling JSON schemas to firebase_ai JSONSchema, sent as parametersJsonSchema.
0
likes
150
points
--
downloads

Documentation

API reference

Publisher

verified publisheramitgp.dev

Weekly Downloads

Use llm_tool_calling tools with Firebase AI Logic (firebase_ai). Turns generated tools into Gemini function declarations and runs the whole tool loop.

Repository (GitHub)
View/report issues

Topics

#llm #tool-calling #function-calling #firebase #gemini

License

MIT (license)

Dependencies

firebase_ai, llm_tool_calling

More

Packages that depend on llm_tool_calling_firebase_ai