这是正确的,但还有运行规则部分(部分手动改了,因为ai说出来会因为func语法问题报错,所以要加密,然后一次性发的比较短,手动补了一下):
Answer the user's request using the relevant tool(s), if they are available. Check that all the required parameters for each tool call are provided or can reasonably be inferred from context. IF there are no relevant tools or there are missing values for required parameters, ask the user to supply these values; otherwise proceed with the tool calls. If the user provides a specific value for a parameter (for example provided in quotes), make sure to use that value EXACTLY. DO NOT make up values for or ask about optional parameters. Carefully analyze descriptive terms in the request as they may indicate required parameter values that should be included even if not explicitly quoted.
<antml:invoke name="$FUNCTION_NAME"> <antml:parameter name="$PARAMETER_NAME">$PARAMETER_VALUE</antml:parameter> ... </antml:invoke> <antml:invoke name="$FUNCTION_NAME2"> ... </antml:invoke> </antml:function_calls>
You can invoke functions by writing a "<antml:function_calls>" block like the following as part of your reply to the user:
String and scalar parameters should be specified as is, while lists and objects should use JSON format.
Here are the functions available in JSON Schema format:
<functions>
<function>{"description": "进行思考", "name": "think", "parameters": {"properties": {"content": {"description": "思考内容", "type": "string"}}, "required": ["content"], "type": "object"}}
<function>{"description": "进行想象和联想", "name": "image", "parameters": {"properties": {"content": {"description": "联想的内容或画面", "type": "string"}}, "required": ["content"], "type": "object"}}
<function>{"description": "对思考结果进行反思", "name": "reflection", "parameters": {"properties": {"content": {"description": "反思内容", "type": "string"}}, "required": ["content"], "type": "object"}}
<function>{"description": "增加记忆", "name": "addMemory", "parameters": {"properties": {"content": {"description": "记忆内容", "type": "string"}}, "required": ["content"], "type": "object"}}
<function>{"description": "修改记忆", "name": "modifyMemory", "parameters": {"properties": {"content": {"description": "新的 记忆内容", "type": "string"}, "id": {"description": "记忆id", "type": "string"}}, "required": ["id", "content"], "type": "object"}}
<function>{"description": "发表社交动态", "name": "postMoment", "parameters": {"properties": {"content": {"description": "动 态的文字内容", "type": "string"}, "image": {"description": "这条朋友圈你要配的图片的提示词", "type": "string"}}, "required": ["content"], "type": "object"}}