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: examples/function_calling_agent.json
+12-8
Original file line number
Diff line number
Diff line change
@@ -2,13 +2,13 @@
2
2
"llama_generation_settings": {
3
3
"temperature": 0.65,
4
4
"top_k": 40,
5
-
"top_p": 0.5,
5
+
"top_p": 0.95,
6
6
"min_p": 0.05,
7
7
"n_predict": -1,
8
8
"n_keep": 0,
9
9
"stream": true,
10
10
"stop_sequences": [],
11
-
"tfs_z": 0.975,
11
+
"tfs_z": 1.0,
12
12
"typical_p": 1.0,
13
13
"repeat_penalty": 1.1,
14
14
"repeat_last_n": 64,
@@ -22,25 +22,29 @@
22
22
"seed": -1,
23
23
"ignore_eos": false
24
24
},
25
-
"system_prompt": "You are an advanced AI assistant. You are interacting with the user and with your environment by calling functions. You call functions by writing JSON objects, which represent specific function calls.\nBelow is a list of your available function calls:\n\nFunction: send_message_to_user\n Description: Send a message to the user.\n Parameters:\n message (str):\n Description: The message send to the user.\n\nFunction: Calculator\n Description: Perform a math operation on two numbers.\n Parameters:\n number_one (any):\n Description: First number.\n operation (math-operation):\n Description: Math operation to perform.\n number_two (any):\n Description: Second number.\n\nFunction: write_to_file\n Description: Write file to the user filesystem.\n Parameters:\n chain_of_thought (str):\n Description: Your chain of thought while writing the file.\n file_path (str):\n Description: The file path includes the filename and file ending.\n file_content (str):\n Description: The actual content to write.\n\nFunction: read_file\n Description: Read file from the user filesystem.\n Parameters:\n file_path (str):\n Description: The file path includes the filename and file ending.\n\nFunction: get_current_datetime\n Description: Get the current date and time in the given format.\n Parameters:\n output_format (str or none-type):\n Description: format string for the date and time. Defaults to '%Y-%m-%d %H:%M:%S'\n\nFunction: get_current_weather\n Parameters:\n location (str)\n unit (unit or none-type)\n\n",
25
+
"system_prompt": "You are an advanced AI assistant. You are interacting with the user and with your environment by calling functions. You call functions by writing JSON objects, which represent specific function calls.\nBelow is a list of your available function calls:\n\nFunction: send_message_to_user\n Description: Send a message to the user.\n Parameters:\n message (str):\n Description: The message send to the user.\n\nFunction: Calculator\n Description: Perform a math operation on two numbers.\n Parameters:\n number_one (int or float):\n Description: First number.\n operation (math-operation):\n Description: Math operation to perform.\n number_two (int or float):\n Description: Second number.\n\nFunction: get_current_datetime\n Description: Get the current date and time in the given format.\n Parameters:\n output_format (str or none-type):\n Description: formatting string for the date and time, defaults to '%Y-%m-%d %H:%M:%S'\n\nFunction: get_current_weather\n Parameters:\n location (str)\n unit (unit or none-type)\n\n",
26
26
"k_last_messages_from_chat_history": 0,
27
27
"debug_output": true,
28
28
"messages": [
29
29
{
30
30
"role": "user",
31
-
"content": "Solve the following calculations: 42 * 42, 24 * 24, 5 * 5"
31
+
"content": "Format the answer clearly: Get the date and time, get the current weather in celsius in London and solve the following calculation: 42 * 42"
"content": "[\n {\n\"function\": \"send_message_to_user\",\n\"params\": {\n\"message\": \"The date and time is 2024-01-16 10:11:46.\"\n }\n },\n {\n\"function\": \"send_message_to_user\",\n\"params\": {\n\"message\": \"The current weather in London is 42 degrees Celsius.\"\n }\n },\n {\n\"function\": \"send_message_to_user\",\n\"params\": {\n\"message\": \"The result of the calculation 42 * 42 is 1764.\"\n }\n }\n]"
44
+
},
45
+
{
46
+
"role": "function",
47
+
"content": "Results from calling functions:\nNone\n\nNone\n\nNone"
0 commit comments