mirror of
https://github.com/hwchase17/langchain.git
synced 2026-03-18 02:53:16 +00:00
cr
This commit is contained in:
@@ -7,22 +7,13 @@
|
||||
"metadata": {},
|
||||
"outputs": [],
|
||||
"source": [
|
||||
"from langchain.tools.file_management.write import WriteFileTool"
|
||||
"from langchain.tools.file_management.write import WriteFileTool\n",
|
||||
"from langchain.tools.file_management.read import ReadFileTool"
|
||||
]
|
||||
},
|
||||
{
|
||||
"cell_type": "code",
|
||||
"execution_count": 2,
|
||||
"id": "ca13aac1",
|
||||
"metadata": {},
|
||||
"outputs": [],
|
||||
"source": [
|
||||
"tool = WriteFileTool()"
|
||||
]
|
||||
},
|
||||
{
|
||||
"cell_type": "code",
|
||||
"execution_count": 3,
|
||||
"id": "7c2c9b54",
|
||||
"metadata": {},
|
||||
"outputs": [],
|
||||
@@ -35,17 +26,18 @@
|
||||
"search = SerpAPIWrapper()\n",
|
||||
"tools = [\n",
|
||||
" Tool(\n",
|
||||
" name = \"Search\",\n",
|
||||
" name = \"search\",\n",
|
||||
" func=search.run,\n",
|
||||
" description=\"useful for when you need to answer questions about current events. You should ask targeted questions\"\n",
|
||||
" ),\n",
|
||||
" tool,\n",
|
||||
" WriteFileTool(),\n",
|
||||
" ReadFileTool(),\n",
|
||||
"]"
|
||||
]
|
||||
},
|
||||
{
|
||||
"cell_type": "code",
|
||||
"execution_count": 4,
|
||||
"execution_count": 3,
|
||||
"id": "72bc204d",
|
||||
"metadata": {},
|
||||
"outputs": [],
|
||||
@@ -57,7 +49,7 @@
|
||||
},
|
||||
{
|
||||
"cell_type": "code",
|
||||
"execution_count": 5,
|
||||
"execution_count": 4,
|
||||
"id": "1df7b724",
|
||||
"metadata": {},
|
||||
"outputs": [],
|
||||
@@ -74,7 +66,7 @@
|
||||
},
|
||||
{
|
||||
"cell_type": "code",
|
||||
"execution_count": 6,
|
||||
"execution_count": 5,
|
||||
"id": "709c08c2",
|
||||
"metadata": {},
|
||||
"outputs": [],
|
||||
@@ -90,7 +82,7 @@
|
||||
},
|
||||
{
|
||||
"cell_type": "code",
|
||||
"execution_count": 7,
|
||||
"execution_count": 6,
|
||||
"id": "1ab7a3c4",
|
||||
"metadata": {},
|
||||
"outputs": [],
|
||||
@@ -100,7 +92,7 @@
|
||||
},
|
||||
{
|
||||
"cell_type": "code",
|
||||
"execution_count": null,
|
||||
"execution_count": 7,
|
||||
"id": "c032b182",
|
||||
"metadata": {
|
||||
"scrolled": false
|
||||
@@ -115,7 +107,7 @@
|
||||
"\u001b[1m> Entering new LLMChain chain...\u001b[0m\n",
|
||||
"Prompt after formatting:\n",
|
||||
"\u001b[32;1m\u001b[1;3mSystem: You are Tom, Assistant\n",
|
||||
"Your decisions must always be made independently without seeking user assistance. Play to your strengths as an LLM and pursue simple strategies with no legal complications.\n",
|
||||
"Your decisions must always be made independently without seeking user assistance. Play to your strengths as an LLM and pursue simple strategies with no legal complications. If you have completed all your tasks, make sure to use the \"finish\" command.\n",
|
||||
"\n",
|
||||
"GOALS:\n",
|
||||
"\n",
|
||||
@@ -129,8 +121,10 @@
|
||||
"4. Exclusively use the commands listed in double quotes e.g. \"command name\"\n",
|
||||
"\n",
|
||||
"Commands:\n",
|
||||
"1. Search: useful for when you need to answer questions about current events. You should ask targeted questions, args: \"tool_input\": \"useful for when you need to answer questions about current events. You should ask targeted questions\"\n",
|
||||
"1. search: useful for when you need to answer questions about current events. You should ask targeted questions, args: \"tool_input\": \"useful for when you need to answer questions about current events. You should ask targeted questions\"\n",
|
||||
"2. write_file: Write file to disk, args: \"file\": \"<file>\", \"text\": \"<text>\"\n",
|
||||
"3. read_file: Read file from disk, args: \"file\": \"<file>\"\n",
|
||||
"4. finish: use this to signal that you have finished all your objectives, args: \"response\": \"final response to let people know you have finished your objectives\"\n",
|
||||
"\n",
|
||||
"Resources:\n",
|
||||
"1. Internet access for searches and information gathering.\n",
|
||||
@@ -162,7 +156,7 @@
|
||||
" }\n",
|
||||
"} \n",
|
||||
"Ensure the response can be parsed by Python json.loads\n",
|
||||
"System: The current time and date is Sat Apr 15 11:40:26 2023\n",
|
||||
"System: The current time and date is Sat Apr 15 14:24:11 2023\n",
|
||||
"System: This reminds you of these events from your past:\n",
|
||||
"[]\n",
|
||||
"\n",
|
||||
@@ -172,16 +166,16 @@
|
||||
"\u001b[1m> Finished chain.\u001b[0m\n",
|
||||
"{\n",
|
||||
" \"thoughts\": {\n",
|
||||
" \"text\": \"I need to write a weather report for San Francisco today. I should use the 'search' command to find the current weather conditions.\",\n",
|
||||
" \"reasoning\": \"I need to gather information about the current weather conditions in San Francisco to write an accurate weather report.\",\n",
|
||||
" \"plan\": \"- Use the 'search' command to find the current weather conditions in San Francisco.\\n- Write a weather report based on the information gathered.\",\n",
|
||||
" \"text\": \"I need to write a weather report for SF today. I should use the search command to find the current weather conditions.\",\n",
|
||||
" \"reasoning\": \"I need to gather information about the current weather conditions in SF to write an accurate weather report.\",\n",
|
||||
" \"plan\": \"- Use the search command to find the current weather conditions in SF\\n- Write a weather report based on the information gathered\",\n",
|
||||
" \"criticism\": \"I need to make sure that the information I gather is accurate and up-to-date.\",\n",
|
||||
" \"speak\": \"I will use the 'search' command to find the current weather conditions in San Francisco.\"\n",
|
||||
" \"speak\": \"I will use the search command to find the current weather conditions in SF.\"\n",
|
||||
" },\n",
|
||||
" \"command\": {\n",
|
||||
" \"name\": \"search\",\n",
|
||||
" \"args\": {\n",
|
||||
" \"tool_input\": \"San Francisco weather today\"\n",
|
||||
" \"tool_input\": \"current weather conditions in San Francisco\"\n",
|
||||
" }\n",
|
||||
" }\n",
|
||||
"}\n",
|
||||
@@ -190,7 +184,7 @@
|
||||
"\u001b[1m> Entering new LLMChain chain...\u001b[0m\n",
|
||||
"Prompt after formatting:\n",
|
||||
"\u001b[32;1m\u001b[1;3mSystem: You are Tom, Assistant\n",
|
||||
"Your decisions must always be made independently without seeking user assistance. Play to your strengths as an LLM and pursue simple strategies with no legal complications.\n",
|
||||
"Your decisions must always be made independently without seeking user assistance. Play to your strengths as an LLM and pursue simple strategies with no legal complications. If you have completed all your tasks, make sure to use the \"finish\" command.\n",
|
||||
"\n",
|
||||
"GOALS:\n",
|
||||
"\n",
|
||||
@@ -204,8 +198,10 @@
|
||||
"4. Exclusively use the commands listed in double quotes e.g. \"command name\"\n",
|
||||
"\n",
|
||||
"Commands:\n",
|
||||
"1. Search: useful for when you need to answer questions about current events. You should ask targeted questions, args: \"tool_input\": \"useful for when you need to answer questions about current events. You should ask targeted questions\"\n",
|
||||
"1. search: useful for when you need to answer questions about current events. You should ask targeted questions, args: \"tool_input\": \"useful for when you need to answer questions about current events. You should ask targeted questions\"\n",
|
||||
"2. write_file: Write file to disk, args: \"file\": \"<file>\", \"text\": \"<text>\"\n",
|
||||
"3. read_file: Read file from disk, args: \"file\": \"<file>\"\n",
|
||||
"4. finish: use this to signal that you have finished all your objectives, args: \"response\": \"final response to let people know you have finished your objectives\"\n",
|
||||
"\n",
|
||||
"Resources:\n",
|
||||
"1. Internet access for searches and information gathering.\n",
|
||||
@@ -237,43 +233,44 @@
|
||||
" }\n",
|
||||
"} \n",
|
||||
"Ensure the response can be parsed by Python json.loads\n",
|
||||
"System: The current time and date is Sat Apr 15 11:40:34 2023\n",
|
||||
"System: The current time and date is Sat Apr 15 14:24:25 2023\n",
|
||||
"System: This reminds you of these events from your past:\n",
|
||||
"[Document(page_content='Assistant Reply: {\\n \"thoughts\": {\\n \"text\": \"I need to write a weather report for San Francisco today. I should use the \\'search\\' command to find the current weather conditions.\",\\n \"reasoning\": \"I need to gather information about the current weather conditions in San Francisco to write an accurate weather report.\",\\n \"plan\": \"- Use the \\'search\\' command to find the current weather conditions in San Francisco.\\\\n- Write a weather report based on the information gathered.\",\\n \"criticism\": \"I need to make sure that the information I gather is accurate and up-to-date.\",\\n \"speak\": \"I will use the \\'search\\' command to find the current weather conditions in San Francisco.\"\\n },\\n \"command\": {\\n \"name\": \"search\",\\n \"args\": {\\n \"tool_input\": \"San Francisco weather today\"\\n }\\n }\\n} \\nResult: Unknown command \\'search\\'. Please refer to the \\'COMMANDS\\' list for available commands and only respond in the specified JSON format. ', metadata={})]\n",
|
||||
"['Assistant Reply: {\\n \"thoughts\": {\\n \"text\": \"I need to write a weather report for SF today. I should use the search command to find the current weather conditions.\",\\n \"reasoning\": \"I need to gather information about the current weather conditions in SF to write an accurate weather report.\",\\n \"plan\": \"- Use the search command to find the current weather conditions in SF\\\\n- Write a weather report based on the information gathered\",\\n \"criticism\": \"I need to make sure that the information I gather is accurate and up-to-date.\",\\n \"speak\": \"I will use the search command to find the current weather conditions in SF.\"\\n },\\n \"command\": {\\n \"name\": \"search\",\\n \"args\": {\\n \"tool_input\": \"current weather conditions in San Francisco\"\\n }\\n }\\n} \\nResult: Command search returned: A few passing clouds, otherwise generally sunny. High 58F. Winds W at 15 to 25 mph. PRECIPITATION. ']\n",
|
||||
"\n",
|
||||
"\n",
|
||||
"Human: Determine which next command to use, and respond using the format specified above:\n",
|
||||
"AI: {\n",
|
||||
" \"thoughts\": {\n",
|
||||
" \"text\": \"I need to write a weather report for San Francisco today. I should use the 'search' command to find the current weather conditions.\",\n",
|
||||
" \"reasoning\": \"I need to gather information about the current weather conditions in San Francisco to write an accurate weather report.\",\n",
|
||||
" \"plan\": \"- Use the 'search' command to find the current weather conditions in San Francisco.\\n- Write a weather report based on the information gathered.\",\n",
|
||||
" \"text\": \"I need to write a weather report for SF today. I should use the search command to find the current weather conditions.\",\n",
|
||||
" \"reasoning\": \"I need to gather information about the current weather conditions in SF to write an accurate weather report.\",\n",
|
||||
" \"plan\": \"- Use the search command to find the current weather conditions in SF\\n- Write a weather report based on the information gathered\",\n",
|
||||
" \"criticism\": \"I need to make sure that the information I gather is accurate and up-to-date.\",\n",
|
||||
" \"speak\": \"I will use the 'search' command to find the current weather conditions in San Francisco.\"\n",
|
||||
" \"speak\": \"I will use the search command to find the current weather conditions in SF.\"\n",
|
||||
" },\n",
|
||||
" \"command\": {\n",
|
||||
" \"name\": \"search\",\n",
|
||||
" \"args\": {\n",
|
||||
" \"tool_input\": \"San Francisco weather today\"\n",
|
||||
" \"tool_input\": \"current weather conditions in San Francisco\"\n",
|
||||
" }\n",
|
||||
" }\n",
|
||||
"}\n",
|
||||
"System: Unknown command 'search'. Please refer to the 'COMMANDS' list for available commands and only respond in the specified JSON format.\n",
|
||||
"System: Command search returned: A few passing clouds, otherwise generally sunny. High 58F. Winds W at 15 to 25 mph. PRECIPITATION.\n",
|
||||
"Human: Determine which next command to use, and respond using the format specified above:\u001b[0m\n",
|
||||
"\n",
|
||||
"\u001b[1m> Finished chain.\u001b[0m\n",
|
||||
"{\n",
|
||||
" \"thoughts\": {\n",
|
||||
" \"text\": \"I will use the 'write_file' command to save the weather report to a file.\",\n",
|
||||
" \"reasoning\": \"I need to save the weather report to a file so that it can be accessed later if needed.\",\n",
|
||||
" \"plan\": \"- Use the 'write_file' command to save the weather report to a file.\",\n",
|
||||
" \"criticism\": \"I need to make sure that the file is saved in a location that is easily accessible and that the file name is descriptive.\",\n",
|
||||
" \"speak\": \"I will use the 'write_file' command to save the weather report to a file.\"\n",
|
||||
" \"text\": \"I have the current weather conditions for SF. I should write a weather report based on this information. I will use the write_file command to save the weather report to disk.\",\n",
|
||||
" \"reasoning\": \"I need to write a weather report based on the information gathered from the search command.\",\n",
|
||||
" \"plan\": \"- Use the write_file command to save the weather report to disk\",\n",
|
||||
" \"criticism\": \"I need to make sure that the weather report is accurate and well-written.\",\n",
|
||||
" \"speak\": \"I will use the write_file command to save the weather report to disk.\"\n",
|
||||
" },\n",
|
||||
" \"command\": {\n",
|
||||
" \"name\": \"write_file\",\n",
|
||||
" \"args\": {\n",
|
||||
" \"file\": \"weather_report_sf.txt\",\n",
|
||||
" \"text\": \"The current weather in San Francisco is sunny with a high of 70 degrees Fahrenheit and a low of 55 degrees Fahrenheit.\"\n",
|
||||
" \"file\": \"weather_report.txt\",\n",
|
||||
" \"text\": \"The current weather conditions in San Francisco are as follows: A few passing clouds, otherwise generally sunny. High 58F. Winds W at 15 to 25 mph. PRECIPITATION.\"\n",
|
||||
" }\n",
|
||||
" }\n",
|
||||
"}\n",
|
||||
@@ -288,7 +285,7 @@
|
||||
"text": [
|
||||
"Prompt after formatting:\n",
|
||||
"\u001b[32;1m\u001b[1;3mSystem: You are Tom, Assistant\n",
|
||||
"Your decisions must always be made independently without seeking user assistance. Play to your strengths as an LLM and pursue simple strategies with no legal complications.\n",
|
||||
"Your decisions must always be made independently without seeking user assistance. Play to your strengths as an LLM and pursue simple strategies with no legal complications. If you have completed all your tasks, make sure to use the \"finish\" command.\n",
|
||||
"\n",
|
||||
"GOALS:\n",
|
||||
"\n",
|
||||
@@ -302,8 +299,10 @@
|
||||
"4. Exclusively use the commands listed in double quotes e.g. \"command name\"\n",
|
||||
"\n",
|
||||
"Commands:\n",
|
||||
"1. Search: useful for when you need to answer questions about current events. You should ask targeted questions, args: \"tool_input\": \"useful for when you need to answer questions about current events. You should ask targeted questions\"\n",
|
||||
"1. search: useful for when you need to answer questions about current events. You should ask targeted questions, args: \"tool_input\": \"useful for when you need to answer questions about current events. You should ask targeted questions\"\n",
|
||||
"2. write_file: Write file to disk, args: \"file\": \"<file>\", \"text\": \"<text>\"\n",
|
||||
"3. read_file: Read file from disk, args: \"file\": \"<file>\"\n",
|
||||
"4. finish: use this to signal that you have finished all your objectives, args: \"response\": \"final response to let people know you have finished your objectives\"\n",
|
||||
"\n",
|
||||
"Resources:\n",
|
||||
"1. Internet access for searches and information gathering.\n",
|
||||
@@ -335,30 +334,75 @@
|
||||
" }\n",
|
||||
"} \n",
|
||||
"Ensure the response can be parsed by Python json.loads\n",
|
||||
"System: The current time and date is Sat Apr 15 11:40:42 2023\n",
|
||||
"System: The current time and date is Sat Apr 15 14:24:32 2023\n",
|
||||
"System: This reminds you of these events from your past:\n",
|
||||
"[Document(page_content='Assistant Reply: {\\n \"thoughts\": {\\n \"text\": \"I will use the \\'write_file\\' command to save the weather report to a file.\",\\n \"reasoning\": \"I need to save the weather report to a file so that it can be accessed later if needed.\",\\n \"plan\": \"- Use the \\'write_file\\' command to save the weather report to a file.\",\\n \"criticism\": \"I need to make sure that the file is saved in a location that is easily accessible and that the file name is descriptive.\",\\n \"speak\": \"I will use the \\'write_file\\' command to save the weather report to a file.\"\\n },\\n \"command\": {\\n \"name\": \"write_file\",\\n \"args\": {\\n \"file\": \"weather_report_sf.txt\",\\n \"text\": \"The current weather in San Francisco is sunny with a high of 70 degrees Fahrenheit and a low of 55 degrees Fahrenheit.\"\\n }\\n }\\n} \\nResult: Command write_file returned: Done ', metadata={}), Document(page_content='Assistant Reply: {\\n \"thoughts\": {\\n \"text\": \"I need to write a weather report for San Francisco today. I should use the \\'search\\' command to find the current weather conditions.\",\\n \"reasoning\": \"I need to gather information about the current weather conditions in San Francisco to write an accurate weather report.\",\\n \"plan\": \"- Use the \\'search\\' command to find the current weather conditions in San Francisco.\\\\n- Write a weather report based on the information gathered.\",\\n \"criticism\": \"I need to make sure that the information I gather is accurate and up-to-date.\",\\n \"speak\": \"I will use the \\'search\\' command to find the current weather conditions in San Francisco.\"\\n },\\n \"command\": {\\n \"name\": \"search\",\\n \"args\": {\\n \"tool_input\": \"San Francisco weather today\"\\n }\\n }\\n} \\nResult: Unknown command \\'search\\'. Please refer to the \\'COMMANDS\\' list for available commands and only respond in the specified JSON format. ', metadata={})]\n",
|
||||
"['Assistant Reply: {\\n \"thoughts\": {\\n \"text\": \"I have the current weather conditions for SF. I should write a weather report based on this information. I will use the write_file command to save the weather report to disk.\",\\n \"reasoning\": \"I need to write a weather report based on the information gathered from the search command.\",\\n \"plan\": \"- Use the write_file command to save the weather report to disk\",\\n \"criticism\": \"I need to make sure that the weather report is accurate and well-written.\",\\n \"speak\": \"I will use the write_file command to save the weather report to disk.\"\\n },\\n \"command\": {\\n \"name\": \"write_file\",\\n \"args\": {\\n \"file\": \"weather_report.txt\",\\n \"text\": \"The current weather conditions in San Francisco are as follows: A few passing clouds, otherwise generally sunny. High 58F. Winds W at 15 to 25 mph. PRECIPITATION.\"\\n }\\n }\\n} \\nResult: Command write_file returned: File written to successfully. ', 'Assistant Reply: {\\n \"thoughts\": {\\n \"text\": \"I need to write a weather report for SF today. I should use the search command to find the current weather conditions.\",\\n \"reasoning\": \"I need to gather information about the current weather conditions in SF to write an accurate weather report.\",\\n \"plan\": \"- Use the search command to find the current weather conditions in SF\\\\n- Write a weather report based on the information gathered\",\\n \"criticism\": \"I need to make sure that the information I gather is accurate and up-to-date.\",\\n \"speak\": \"I will use the search command to find the current weather conditions in SF.\"\\n },\\n \"command\": {\\n \"name\": \"search\",\\n \"args\": {\\n \"tool_input\": \"current weather conditions in San Francisco\"\\n }\\n }\\n} \\nResult: Command search returned: A few passing clouds, otherwise generally sunny. High 58F. Winds W at 15 to 25 mph. PRECIPITATION. ']\n",
|
||||
"\n",
|
||||
"\n",
|
||||
"Human: Determine which next command to use, and respond using the format specified above:\n",
|
||||
"AI: {\n",
|
||||
" \"thoughts\": {\n",
|
||||
" \"text\": \"I will use the 'write_file' command to save the weather report to a file.\",\n",
|
||||
" \"reasoning\": \"I need to save the weather report to a file so that it can be accessed later if needed.\",\n",
|
||||
" \"plan\": \"- Use the 'write_file' command to save the weather report to a file.\",\n",
|
||||
" \"criticism\": \"I need to make sure that the file is saved in a location that is easily accessible and that the file name is descriptive.\",\n",
|
||||
" \"speak\": \"I will use the 'write_file' command to save the weather report to a file.\"\n",
|
||||
" \"text\": \"I need to write a weather report for SF today. I should use the search command to find the current weather conditions.\",\n",
|
||||
" \"reasoning\": \"I need to gather information about the current weather conditions in SF to write an accurate weather report.\",\n",
|
||||
" \"plan\": \"- Use the search command to find the current weather conditions in SF\\n- Write a weather report based on the information gathered\",\n",
|
||||
" \"criticism\": \"I need to make sure that the information I gather is accurate and up-to-date.\",\n",
|
||||
" \"speak\": \"I will use the search command to find the current weather conditions in SF.\"\n",
|
||||
" },\n",
|
||||
" \"command\": {\n",
|
||||
" \"name\": \"search\",\n",
|
||||
" \"args\": {\n",
|
||||
" \"tool_input\": \"current weather conditions in San Francisco\"\n",
|
||||
" }\n",
|
||||
" }\n",
|
||||
"}\n",
|
||||
"System: Command search returned: A few passing clouds, otherwise generally sunny. High 58F. Winds W at 15 to 25 mph. PRECIPITATION.\n",
|
||||
"Human: Determine which next command to use, and respond using the format specified above:\n",
|
||||
"AI: {\n",
|
||||
" \"thoughts\": {\n",
|
||||
" \"text\": \"I have the current weather conditions for SF. I should write a weather report based on this information. I will use the write_file command to save the weather report to disk.\",\n",
|
||||
" \"reasoning\": \"I need to write a weather report based on the information gathered from the search command.\",\n",
|
||||
" \"plan\": \"- Use the write_file command to save the weather report to disk\",\n",
|
||||
" \"criticism\": \"I need to make sure that the weather report is accurate and well-written.\",\n",
|
||||
" \"speak\": \"I will use the write_file command to save the weather report to disk.\"\n",
|
||||
" },\n",
|
||||
" \"command\": {\n",
|
||||
" \"name\": \"write_file\",\n",
|
||||
" \"args\": {\n",
|
||||
" \"file\": \"weather_report_sf.txt\",\n",
|
||||
" \"text\": \"The current weather in San Francisco is sunny with a high of 70 degrees Fahrenheit and a low of 55 degrees Fahrenheit.\"\n",
|
||||
" \"file\": \"weather_report.txt\",\n",
|
||||
" \"text\": \"The current weather conditions in San Francisco are as follows: A few passing clouds, otherwise generally sunny. High 58F. Winds W at 15 to 25 mph. PRECIPITATION.\"\n",
|
||||
" }\n",
|
||||
" }\n",
|
||||
"}\n",
|
||||
"System: Command write_file returned: Done\n",
|
||||
"Human: Determine which next command to use, and respond using the format specified above:\u001b[0m\n"
|
||||
"System: Command write_file returned: File written to successfully.\n",
|
||||
"Human: Determine which next command to use, and respond using the format specified above:\u001b[0m\n",
|
||||
"\n",
|
||||
"\u001b[1m> Finished chain.\u001b[0m\n",
|
||||
"{\n",
|
||||
" \"thoughts\": {\n",
|
||||
" \"text\": \"I have completed all my tasks. I will use the finish command to signal that I am done.\",\n",
|
||||
" \"reasoning\": \"I have completed the task of writing a weather report for SF today.\",\n",
|
||||
" \"plan\": \"- Use the finish command to signal that I am done.\",\n",
|
||||
" \"criticism\": \"I need to make sure that I have completed all my tasks before using the finish command.\",\n",
|
||||
" \"speak\": \"I will use the finish command to signal that I am done.\"\n",
|
||||
" },\n",
|
||||
" \"command\": {\n",
|
||||
" \"name\": \"finish\",\n",
|
||||
" \"args\": {\n",
|
||||
" \"response\": \"I have completed all my tasks.\"\n",
|
||||
" }\n",
|
||||
" }\n",
|
||||
"}\n"
|
||||
]
|
||||
},
|
||||
{
|
||||
"data": {
|
||||
"text/plain": [
|
||||
"'I have completed all my tasks.'"
|
||||
]
|
||||
},
|
||||
"execution_count": 7,
|
||||
"metadata": {},
|
||||
"output_type": "execute_result"
|
||||
}
|
||||
],
|
||||
"source": [
|
||||
@@ -368,7 +412,7 @@
|
||||
{
|
||||
"cell_type": "code",
|
||||
"execution_count": null,
|
||||
"id": "32710d40",
|
||||
"id": "aa264f26",
|
||||
"metadata": {},
|
||||
"outputs": [],
|
||||
"source": []
|
||||
|
||||
Reference in New Issue
Block a user