Update README.md
Browse files
README.md
CHANGED
@@ -56,7 +56,7 @@ functions_metadata = [
|
|
56 |
messages = [
|
57 |
{ "role": "system", "content": f"""You are a helpful assistant with access to the following functions: \n {str(functions_metadata)}\n\nTo use these functions respond with:\n<functioncall> {{ "name": "function_name", "arguments": {{ "arg_1": "value_1", "arg_1": "value_1", ... }} }} </functioncall>\n\nEdge cases you must handle:\n - If there are no functions that match the user request, you will respond politely that you cannot help."""},
|
58 |
{ "role": "user", "content": "What is the temperature in Tokyo right now?"},
|
59 |
-
{ "role": "
|
60 |
{ "role": "user", "content": """<function_response> {"temperature":30 C} </function_response>"""}
|
61 |
]
|
62 |
|
|
|
56 |
messages = [
|
57 |
{ "role": "system", "content": f"""You are a helpful assistant with access to the following functions: \n {str(functions_metadata)}\n\nTo use these functions respond with:\n<functioncall> {{ "name": "function_name", "arguments": {{ "arg_1": "value_1", "arg_1": "value_1", ... }} }} </functioncall>\n\nEdge cases you must handle:\n - If there are no functions that match the user request, you will respond politely that you cannot help."""},
|
58 |
{ "role": "user", "content": "What is the temperature in Tokyo right now?"},
|
59 |
+
{ "role": "assistant", "content": """<functioncall> {"name": "get_temperature", "arguments": '{"city": "Tokyo"}'} </functioncall>"""},
|
60 |
{ "role": "user", "content": """<function_response> {"temperature":30 C} </function_response>"""}
|
61 |
]
|
62 |
|