mirror of
https://github.com/FoundationAgents/MetaGPT.git
synced 2026-06-29 15:59:42 +02:00
chore: remove and renamed function_schema.py
This commit is contained in:
parent
aca50086c3
commit
2a88158933
1 changed files with 0 additions and 0 deletions
|
|
@ -1,30 +0,0 @@
|
|||
# function in tools, https://platform.openai.com/docs/api-reference/chat/create#chat-create-tools
|
||||
# Reference: https://github.com/KillianLucas/open-interpreter/blob/v0.1.14/interpreter/llm/setup_openai_coding_llm.py
|
||||
general_function_schema = {
|
||||
"name": "execute",
|
||||
"description": "Executes code on the user's machine, **in the users local environment**, and returns the output",
|
||||
"parameters": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"language": {
|
||||
"type": "string",
|
||||
"description": "The programming language (required parameter to the `execute` function)",
|
||||
"enum": [
|
||||
"python",
|
||||
"R",
|
||||
"shell",
|
||||
"applescript",
|
||||
"javascript",
|
||||
"html",
|
||||
"powershell",
|
||||
],
|
||||
},
|
||||
"code": {"type": "string", "description": "The code to execute (required)"},
|
||||
},
|
||||
"required": ["language", "code"],
|
||||
},
|
||||
}
|
||||
|
||||
# tool_choice value for general_function_schema
|
||||
# https://platform.openai.com/docs/api-reference/chat/create#chat-create-tool_choice
|
||||
general_tool_choice = {"type": "function", "function": {"name": "execute"}}
|
||||
Loading…
Add table
Add a link
Reference in a new issue