-
Notifications
You must be signed in to change notification settings - Fork 254
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
1. Add plugin: for obtaining the current time based on function call.
2. Add plugin: to obtain the current version of the robot based on a function call.
- Loading branch information
Showing
3 changed files
with
91 additions
and
53 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,53 +1,70 @@ | ||
function_call_list = { | ||
"base": { | ||
"functions": [], | ||
"function_call": "auto" | ||
}, | ||
"current_weather": { | ||
"name": "get_current_weather", | ||
"description": "Get the current weather in a given location", | ||
"parameters": { | ||
"type": "object", | ||
"properties": { | ||
"location": { | ||
"type": "string", | ||
"description": "The city and state, e.g. San Francisco, CA" | ||
}, | ||
"unit": { | ||
"type": "string", | ||
"enum": ["celsius", "fahrenheit"] | ||
function_call_list = \ | ||
{ | ||
"base": { | ||
"functions": [], | ||
"function_call": "auto" | ||
}, | ||
"current_weather": { | ||
"name": "get_current_weather", | ||
"description": "Get the current weather in a given location", | ||
"parameters": { | ||
"type": "object", | ||
"properties": { | ||
"location": { | ||
"type": "string", | ||
"description": "The city and state, e.g. San Francisco, CA" | ||
}, | ||
"unit": { | ||
"type": "string", | ||
"enum": [ | ||
"celsius", | ||
"fahrenheit" | ||
] | ||
} | ||
}, | ||
"required": [ | ||
"location" | ||
] | ||
} | ||
}, | ||
"required": ["location"] | ||
} | ||
}, | ||
"web_search": { | ||
"name": "get_search_results", | ||
"description": "Search Google to enhance knowledge.", | ||
"parameters": { | ||
"type": "object", | ||
"properties": { | ||
"prompt": { | ||
"type": "string", | ||
"description": "The prompt to search." | ||
}, | ||
"web_search": { | ||
"name": "get_search_results", | ||
"description": "Search Google to enhance knowledge.", | ||
"parameters": { | ||
"type": "object", | ||
"properties": { | ||
"prompt": { | ||
"type": "string", | ||
"description": "The prompt to search." | ||
} | ||
}, | ||
"required": [ | ||
"prompt" | ||
] | ||
} | ||
}, | ||
"required": ["prompt"] | ||
} | ||
}, | ||
"url_fetch": { | ||
"name": "get_url_content", | ||
"description": "Get the webpage content of a URL", | ||
"parameters": { | ||
"type": "object", | ||
"properties": { | ||
"url": { | ||
"type": "string", | ||
"description": "the URL to request" | ||
}, | ||
"url_fetch": { | ||
"name": "get_url_content", | ||
"description": "Get the webpage content of a URL", | ||
"parameters": { | ||
"type": "object", | ||
"properties": { | ||
"url": { | ||
"type": "string", | ||
"description": "the URL to request" | ||
} | ||
}, | ||
"required": [ | ||
"url" | ||
] | ||
} | ||
}, | ||
"required": ["url"] | ||
} | ||
}, | ||
} | ||
|
||
}, | ||
"today": { | ||
"name": "get_date_time_weekday", | ||
"description": "Get the current time, date, and day of the week" | ||
}, | ||
"vresion": { | ||
"name": "get_version_info", | ||
"description": "Get version information" | ||
}, | ||
} |