You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This guide will walk you through the process of setting up and using tool calls (tool calling) with Large Language Models (LLMs) using the ESP32_AI_Connect library. We'll use the `tool_calling_demo.ino` sketch stored in the examples folder as our reference implementation, explaining each component in detail so you can understand how to integrate AI tool calling capabilities into your ESP32 projects with ESP32_AI_Connect.
@@ -22,7 +22,7 @@ First, ensure that tool calls support is enabled in the library configuration fi
22
22
```cpp
23
23
// --- Tool Calls Support ---
24
24
// Uncomment the following line to enable tool calls (tool calling) support
25
-
// This will add tcToolSetup and tcChat methods to the library
25
+
// This will add tool calling methods to the library
26
26
// If you don't need tool calls, keep this commented out to save memory
27
27
#defineENABLE_TOOL_CALLS
28
28
```
@@ -125,15 +125,15 @@ After defining your tools, you need to set up the tool calling configuration:
125
125
```cpp
126
126
// --- Setup Tool Calling ---
127
127
Serial.println("Setting up tool calling configuration...");
128
-
if (!aiClient.tcToolSetup(myTools, numTools)) {
128
+
if (!aiClient.setTCTools(myTools, numTools)) {
129
129
Serial.println(F("Failed to set up tool calling!"));
0 commit comments