Spaces:
Configuration error
Configuration error
File size: 1,400 Bytes
096cc99 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 | # π§ Tool Calling Setup - SDK Requirements
## β οΈ Important: SDK Installation Required
The tool calling feature requires the **new Google GenAI SDK** to be installed.
### π¦ Installation
```bash
pip install google-genai
```
### π Verification
Check if installed correctly:
```bash
python -c "from google import genai; print('β
SDK installed successfully')"
```
### π Current Status
Without the SDK installed, the system will:
- β
Run normally without tool calling
- β οΈ Display warning: "Tools will be disabled. Install google-genai SDK..."
- β Function calling will not work
### π After Installation
Once installed, the AI will be able to:
1. Call `inspect_node()` to get node information
2. Call `find_best_nodes()` to search for optimal positions
3. Call `analyze_path_potential()` to plan road building
4. Use dynamic thinking budgets per iteration
### π More Information
- **SDK Documentation:** https://github.com/googleapis/python-genai
- **Tool Integration Docs:** [docs/TOOLS_INTEGRATION.md](../../docs/TOOLS_INTEGRATION.md)
- **Test Tools:** `python examples/ai_testing/test_tools_integration.py`
---
## π Notes
- The old `google-generativeai` package is different and won't work
- Use the new `google-genai` package (note the hyphen!)
- Tool calling works with Gemini 2.0+ models
- Thinking mode requires `gemini-2.0-flash-thinking-exp` model
|