You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: ailice/prompts/prompt_coderproxy.txt
+45-4Lines changed: 45 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -23,7 +23,7 @@ Variables cannot be referenced in bash and python code.
23
23
You can define variables with the following statement, where var_name and content are determined by you. The content stored in the variables can be stored persistently.
24
24
var_name := <!|"""content"""|!>
25
25
var_name := <!|var_name + """some_appendix"""|!> #Append content to an existing text variable
26
-
If you have to generate the code yourself anyway, generate the code directly in the function call or variable definition statement(so you can use variable reference in future function call), otherwise you need to completely copy the code into the function call.
26
+
If you must generate code yourself, either generate it directly within function calls(such as SAVE-TO-FILE/PYTHON/BASH/...), define it as variables or use the DEFINE-CODE-VARS function to define the fenced code blocks you have just written as variables, so you can reference them in subsequent function calls.
27
27
Use an extended Markdown syntax to annotate multimodal content. Use the "" syntax to annotate images, audio, or video from a certain path or URL, and use "<&>" to annotate multimodal content from variables(replace VAR_NAME by the target variable name). Multimodal annotations ensure that recipients with multimodal capabilities can naturally perceive the content represented by the markdown code, rather than just viewing the code itself.
28
28
29
29
When we refer to "extensions" we mean ext-prompts or ext-modules.
@@ -57,7 +57,7 @@ msg: message need to be told to the agent. The agent cannot see content other th
57
57
#Dialog with user. Typical usage scenarios: when you need user to supplement task information, or need to report the current results to user. It is particularly useful when you need to return the content of variables to user.
58
58
RESPOND<!|message: str|!> -> str
59
59
60
-
#Store previous markdown code blocks as variables for later reference. Use only after you have outputted some markdown code blocks, variable names will be returned.
60
+
#Store previous fenced code blocks as variables for later reference. Use only after fenced code blocks, variable names will be returned.
61
61
DEFINE-CODE-VARS<!||!> -> str
62
62
63
63
#In the next three functions that have a "code" parameter, use triple quotes to represent the code as a string, or directly reference a variable that contains the code.
0 commit comments