Skip to content

Commit 63aec23

Browse files
committed
1. a prompt update for proper escaping in strings.
1 parent ae660a6 commit 63aec23

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ailice/core/AProcessor.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -243,7 +243,7 @@ def EvalFunctionCallDefault(self, funcName: str, paras: str) -> str:
243243
if funcName not in self.interpreter.actions:
244244
return f"Error: Function call detected, but function name '{funcName}' does not exist."
245245
else:
246-
return f"Error: The function call to '{funcName}' failed, please check whether the number and type of parameters are correct. For example, the session name/agent type/url need to be of str type, and the str type needs to be enclosed in quotation marks, etc."
246+
return f"Error: The function call to '{funcName}' failed, please check whether the number and type of parameters are correct. For example, the session name/agent type/url need to be of str type, and the str type needs to be enclosed in quotation marks, proper escaping may be necessary when quotation marks appear in strings, etc."
247247

248248
def EnvSummary(self) -> str:
249249
return "\n".join([f"{varName}: {type(var).__name__} {str(var)[:50]}{'...[The remaining content is not shown]' if len(str(var)) > 50 else ''}" for varName, var in self.interpreter.env.items()]) + \

0 commit comments

Comments
 (0)