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
tool='# External Tools\nYou have access to these tools:\n',
1974
-
eotool='\n# Tool Call Formatted\nYour response should consist of a reasoning step (**thought**) followed immediately by a function call in valid JSON format. Wrap each function call using the `<|action_start|><|plugin|>` and `<|action_end|>` tags.\n**Format example:**\n```\n(Your thought goes here...)\n<|action_start|><|plugin|>\n{\n "name": "tool_name",\n "parameters": {\n "parameter1": "value1",\n "parameter2": "value2"\n }\n}\n<|action_end|>\n```', # noqa: E501
1974
+
tool='\n\nYour response should consist of a reasoning step (**thought**) followed immediately by a function call in valid JSON format. Wrap each function call using the `<|action_start|><|plugin|>` and `<|action_end|>` tags.\n\n**Format example:**\n\n```\n(Your thought goes here...)\n\n<|action_start|><|plugin|>\n{\n "name": "tool_name",\n "parameters": {\n "parameter1": "value1",\n "parameter2": "value2"\n }\n}\n<|action_end|>\n```\n\n# External Tools\nYou have access to these tools:\n',# noqa: E501
1975
+
eotool='',
1975
1976
meta_instruction='You are an expert reasoner with extensive experience in all areas. You approach problems through systematic thinking and rigorous reasoning. Your response should reflect deep understanding and precise logical thinking, making your solution path and reasoning clear to others. Please put your thinking process within <think>...</think> tags.', # noqa: E501
'Find user id by first name, last name, and zip code. If the user is not found, the function will return an error message. By default, find user id by email, and only call this function if the user is not found by email or cannot remember email.', # noqa: E501
1070
+
'parameters': {
1071
+
'type': 'object',
1072
+
'properties': {
1073
+
'first_name': {
1074
+
'type': 'string',
1075
+
'description': "The first name of the customer, such as 'John'."
1076
+
},
1077
+
'last_name': {
1078
+
'type': 'string',
1079
+
'description': "The last name of the customer, such as 'Doe'."
1080
+
},
1081
+
'zip': {
1082
+
'type': 'string',
1083
+
'description': "The zip code of the customer, such as '12345'."
1084
+
}
1085
+
},
1086
+
'required': ['first_name', 'last_name', 'zip']
1087
+
}
1088
+
}
1089
+
},
1090
+
{
1091
+
'type': 'function',
1092
+
'function': {
1093
+
'name': 'get_order_details',
1094
+
'description': 'Get the status and details of an order.',
1095
+
'parameters': {
1096
+
'type': 'object',
1097
+
'properties': {
1098
+
'order_id': {
1099
+
'type':
1100
+
'string',
1101
+
'description':
1102
+
"The order id, such as '#W0000000'. Be careful there is a '#' symbol at the beginning of the order id."# noqa: E501
1103
+
}
1104
+
},
1105
+
'required': ['order_id']
1106
+
}
1107
+
}
1108
+
}
1109
+
]
1110
+
messages= [
1111
+
{
1112
+
'role': 'system',
1113
+
'content': 'You are a helpful assistant'
1114
+
},
1115
+
{
1116
+
'role': 'user',
1117
+
'content': "Hi there! I'm looking to return a couple of items from a recent order."
1118
+
},
1119
+
{
1120
+
'role':
1121
+
'assistant',
1122
+
'content':
1123
+
'Could you please provide your email address associated with the account, or share your first name, last name, and zip code?', # noqa: E501
1124
+
'reasoning_content':
1125
+
'Okay, the user wants to return some items from a recent order. Let me start by authenticating their identity...'# noqa: E501
1126
+
},
1127
+
{
1128
+
'role': 'user',
1129
+
'content': 'Sure, my name is Omar Anderson and my zip code is 19031.'
1130
+
},
1131
+
{
1132
+
'role':
1133
+
'assistant',
1134
+
'content':
1135
+
'<content>',
1136
+
'reasoning_content':
1137
+
"Since he didn't provide an email, I should use the find_user_id_by_name_zip function. Let me...", # noqa: E501
0 commit comments