@equationalapplications/core-llm-tools 8.0.1 → 8.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/README.md +4 -4
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -78,9 +78,9 @@ const tools = buildAuthorizedToolsArray(allAppTools, userGrantedScopes);
78
78
 
79
79
  // 4. Pass safely to Gemini
80
80
  const response = await ai.models.generateContent({
81
- model: 'gemini-2.5-flash',
81
+ model: 'gemini-flash-latest',
82
82
  contents: userInput,
83
- tools,
83
+ config: { tools }, // @google/genai reads tools only from config
84
84
  });
85
85
  ```
86
86
 
@@ -108,9 +108,9 @@ const tools = buildAuthorizedToolsArray(allAppTools, userGrantedScopes);
108
108
  // => [{ functionDeclarations: [...] }, { google_search: {} }]
109
109
 
110
110
  const response = await ai.models.generateContent({
111
- model: 'gemini-2.5-flash',
111
+ model: 'gemini-flash-latest',
112
112
  contents: userInput,
113
- tools,
113
+ config: { tools }, // @google/genai reads tools only from config
114
114
  });
115
115
  ```
116
116
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@equationalapplications/core-llm-tools",
3
- "version": "8.0.1",
3
+ "version": "8.0.2",
4
4
  "description": "Zero-dependency Gemini function-calling schemas and capability-scoped tool injection for edge AI agents. Works in Node.js, browser, and React Native (Hermes).",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",