mirror of
https://github.com/jihe520/MathModelAgent.git
synced 2026-09-19 08:09:48 +08:00
72e0177745
rename
23 lines
960 B
Python
23 lines
960 B
Python
functions = [
|
|
{
|
|
"type": "function",
|
|
"function": {
|
|
"name": "execute_code",
|
|
"description": "This function allows you to execute Python code and retrieve the terminal output. If the code "
|
|
"generates image output, the function will return the text '[image]'. The code is sent to a "
|
|
"Jupyter kernel for execution. The kernel will remain active after execution, retaining all "
|
|
"variables in memory."
|
|
"You cannot show rich outputs like plots or images, but you can store them in the working directory and point the user to them. ",
|
|
"strict": True,
|
|
"parameters": {
|
|
"type": "object",
|
|
"properties": {
|
|
"code": {"type": "string", "description": "The code text"}
|
|
},
|
|
"required": ["code"],
|
|
"additionalProperties": False,
|
|
},
|
|
},
|
|
},
|
|
]
|