|
|
|
|
|
|
|
|
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"], |
|
|
}, |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
GENERAL_TOOL_CHOICE = {"type": "function", "function": {"name": "execute"}} |
|
|
|
|
|
|
|
|
MULTI_MODAL_MODELS = [ |
|
|
"gpt-4o", |
|
|
"gpt-4o-mini", |
|
|
"openai/gpt-4o", |
|
|
"gemini-2.0-flash-exp", |
|
|
"gemini-2.0-pro-exp-02-05", |
|
|
"claude-3-5-sonnet-v2", |
|
|
"google/gemini-2.0-flash-exp:free", |
|
|
"google/gemini-2.0-pro-exp-02-05:free", |
|
|
"anthropic/claude-3.5-sonnet", |
|
|
"anthropic/claude-3.7-sonnet", |
|
|
] |
|
|
|