File tree 1 file changed +5
-7
lines changed
1 file changed +5
-7
lines changed Original file line number Diff line number Diff line change @@ -8,8 +8,7 @@ cat > tools.json << EOF
8
8
"function_declarations": [
9
9
{
10
10
"name": "enable_lights",
11
- "description": "Turn on the lighting system.",
12
- "parameters": { "type": "object" }
11
+ "description": "Turn on the lighting system."
13
12
},
14
13
{
15
14
"name": "set_light_color",
@@ -29,8 +28,7 @@ cat > tools.json << EOF
29
28
},
30
29
{
31
30
"name": "stop_lights",
32
- "description": "Turn off the lighting system.",
33
- "parameters": { "type": "object" }
31
+ "description": "Turn off the lighting system."
34
32
}
35
33
]
36
34
}
@@ -45,16 +43,16 @@ curl "https://generativelanguage.googleapis.com/v1beta/models/gemini-1.5-pro-lat
45
43
"text": "You are a helpful lighting system bot. You can turn lights on and off, and you can set the color. Do not perform any other tasks."
46
44
}
47
45
},
48
- "tools": [' $( source " $ tools" ) ' ],
46
+ "tools": [' $( cat tools.json ) ' ],
49
47
50
48
"tool_config": {
51
- "function_calling_config": {"mode": "none "}
49
+ "function_calling_config": {"mode": "auto "}
52
50
},
53
51
54
52
"contents": {
55
53
"role": "user",
56
54
"parts": {
57
- "text": "What can you do? "
55
+ "text": "Turn on the lights please. "
58
56
}
59
57
}
60
58
}
You can’t perform that action at this time.
0 commit comments