Skip to content

Commit 918d764

Browse files
committed
Typo-fix
1 parent e727797 commit 918d764

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

doc/User Guides/3 Tool Calls Implementation Basics.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# ESP32_AI_Connect Library User Guide - 3 Tool Calls Implementation Basics
2-
> **Version 0.0.5** • Revised: May 12, 2025 • Author: AvantMaker • [https://www.AvantMaker.com](https://www.AvantMaker.com)
2+
> **Version 0.0.6** • Revised: May 12, 2025 • Author: AvantMaker • [https://www.AvantMaker.com](https://www.AvantMaker.com)
33
## Overview
44

55
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
2222
```cpp
2323
// --- Tool Calls Support ---
2424
// 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
2626
// If you don't need tool calls, keep this commented out to save memory
2727
#define ENABLE_TOOL_CALLS
2828
```
@@ -125,15 +125,15 @@ After defining your tools, you need to set up the tool calling configuration:
125125
```cpp
126126
// --- Setup Tool Calling ---
127127
Serial.println("Setting up tool calling configuration...");
128-
if (!aiClient.tcToolSetup(myTools, numTools)) {
128+
if (!aiClient.setTCTools(myTools, numTools)) {
129129
Serial.println(F("Failed to set up tool calling!"));
130130
Serial.println("Error: " + aiClient.getLastError());
131131
while(1) { delay(1000); } // Halt on failure
132132
}
133133
Serial.println(F("Tool calling setup successful."));
134134
```
135135

136-
The `tcToolSetup` method takes the array of tool definitions and its size. This sets up the basic configuration for tool calling.
136+
The `setTCTools` method takes the array of tool definitions and its size. This sets up the basic configuration for tool calling.
137137

138138
## Step 7: Configure Tool Calling Parameters (Optional)
139139

examples/use_Gemini_setChatParameters/use_Gemini_setChatParameters.ino

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22
* ESP32_AI_Connect - Gemini setChatParameters Demo
33
* Author: AvantMaker <admin@avantmaker.com>
44
* Author Website: https://www.AvantMaker.com
5-
* Date: May 15, 2025
6-
* Version: 1.0.1
5+
* Date: May 18, 2025
6+
* Version: 1.0.2
77
*
88
* Description:
99
* This example demonstrates how to use the ESP32_AI_Connect library to interact with the Google Gemini AI
@@ -45,7 +45,7 @@
4545
const char* ssid = "your_SSID"; // Replace with your Wi-Fi SSID
4646
const char* password = "your_PASSWORD"; // Replace with your Wi-Fi password
4747

48-
const char* apiKey = "AIzaSyDS1R28p6uNzDz2jCAPEGSLYyJM1xVxM0s"; // Replace with your key
48+
const char* apiKey = "your_API_Key"; // Replace with your key
4949
const char* model = "gemini-2.0-flash"; // Replace with your model
5050
const char* platform = "gemini";
5151

0 commit comments

Comments
 (0)