Scott Cogan
commited on
Commit
·
b3920f7
1
Parent(s):
dd52cf5
requirements update for llm compat
Browse files
app.py
CHANGED
|
@@ -310,27 +310,13 @@ class BasicAgent:
|
|
| 310 |
else:
|
| 311 |
messages_with_system = [self.sys_msg] + messages
|
| 312 |
|
| 313 |
-
#
|
| 314 |
-
tools = [{
|
| 315 |
-
"name": "google_search",
|
| 316 |
-
"description": "Search for information on the web",
|
| 317 |
-
"parameters": {
|
| 318 |
-
"properties": {
|
| 319 |
-
"query": {
|
| 320 |
-
"type": "string",
|
| 321 |
-
"description": "The search query"
|
| 322 |
-
}
|
| 323 |
-
},
|
| 324 |
-
"required": ["query"]
|
| 325 |
-
}
|
| 326 |
-
}]
|
| 327 |
-
|
| 328 |
-
# Create a GenAI tool object
|
| 329 |
genai_tool = GenAITool(
|
| 330 |
function_declarations=[{
|
| 331 |
"name": "google_search",
|
| 332 |
"description": "Search for information on the web",
|
| 333 |
"parameters": {
|
|
|
|
| 334 |
"properties": {
|
| 335 |
"query": {
|
| 336 |
"type": "string",
|
|
|
|
| 310 |
else:
|
| 311 |
messages_with_system = [self.sys_msg] + messages
|
| 312 |
|
| 313 |
+
# Create a GenAI tool object with the correct parameter format
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 314 |
genai_tool = GenAITool(
|
| 315 |
function_declarations=[{
|
| 316 |
"name": "google_search",
|
| 317 |
"description": "Search for information on the web",
|
| 318 |
"parameters": {
|
| 319 |
+
"type": "object",
|
| 320 |
"properties": {
|
| 321 |
"query": {
|
| 322 |
"type": "string",
|