fixing parser, tools and executor

This commit is contained in:
João Moura
2024-09-15 18:41:59 -03:00
parent c2795307f6
commit f216b0a78c
98 changed files with 21270 additions and 26437 deletions

View File

@@ -18,7 +18,7 @@ interactions:
final answer: The result of the multiplication.\nyou MUST return the actual
complete content as the final answer, not a summary.\n\nBegin! This is VERY
important to you, use the tools available and give your best Final Answer, your
job depends on it!\n\nThought:"}], "model": "gpt-4o", "stop": ["\nObservation"]}'
job depends on it!\n\nThought:"}], "model": "gpt-4o", "stop": ["\nResult"]}'
headers:
accept:
- application/json
@@ -27,12 +27,12 @@ interactions:
connection:
- keep-alive
content-length:
- '1487'
- '1482'
content-type:
- application/json
cookie:
- __cf_bm=r6BNUnXat.26mviZiJYUf7Qj4ea5gbt_oPxyClKcVOE-1726214380-1.0.1.1-2S3G10sPdiG2syQSO8wKWXE7Nmdgt88imgakr81w9DemMH8mVDg0q6r9ANx6tM4_CPvgGQlMVstDhDRkIDwhzg;
_cfuvid=dp2yoCmGHVlURh_U78_UoIfnhcO5UhufnL5whkUSMTQ-1726214380689-0.0.1.1-604800000
- __cf_bm=J1VIPhfusyyXtwM.1L9zbe3jdnU7NVyHC3AWiKXO280-1726379702-1.0.1.1-LDa9RyXFli18t4ZEuVAENTChdNAkRtdWXRkRLbBHbCXdobugQ3T.arhMpSKwtnBRXKPcC4b66UA7BsSy1VXDHQ;
_cfuvid=Bz2zevKuFYZqnEFwqmqVHcRo5pT0fm0fTtc_6_VQs4g-1726379702153-0.0.1.1-604800000
host:
- api.openai.com
user-agent:
@@ -56,20 +56,20 @@ interactions:
method: POST
uri: https://api.openai.com/v1/chat/completions
response:
content: "{\n \"id\": \"chatcmpl-A6vVQKFJ6nelX4CXHkcvfh6LGJ4m5\",\n \"object\":
\"chat.completion\",\n \"created\": 1726214384,\n \"model\": \"gpt-4o-2024-05-13\",\n
content: "{\n \"id\": \"chatcmpl-A7cVsy4yPPjlE7K1vActM2QnAKJci\",\n \"object\":
\"chat.completion\",\n \"created\": 1726379704,\n \"model\": \"gpt-4o-2024-05-13\",\n
\ \"choices\": [\n {\n \"index\": 0,\n \"message\": {\n \"role\":
\"assistant\",\n \"content\": \"I need to find out the result of multiplying
3 by 4.\\n\\nAction: multiplier\\nAction Input: {\\\"first_number\\\": 3, \\\"second_number\\\":
4}\",\n \"refusal\": null\n },\n \"logprobs\": null,\n \"finish_reason\":
\"stop\"\n }\n ],\n \"usage\": {\n \"prompt_tokens\": 309,\n \"completion_tokens\":
36,\n \"total_tokens\": 345,\n \"completion_tokens_details\": {\n \"reasoning_tokens\":
0\n }\n },\n \"system_fingerprint\": \"fp_25624ae3a5\"\n}\n"
\"assistant\",\n \"content\": \"To find the result of 3 times 4, I will
use the multiplier tool.\\n\\nAction: multiplier\\nAction Input: {\\\"first_number\\\":
3, \\\"second_number\\\": 4}\",\n \"refusal\": null\n },\n \"logprobs\":
null,\n \"finish_reason\": \"stop\"\n }\n ],\n \"usage\": {\n \"prompt_tokens\":
309,\n \"completion_tokens\": 39,\n \"total_tokens\": 348,\n \"completion_tokens_details\":
{\n \"reasoning_tokens\": 0\n }\n },\n \"system_fingerprint\": \"fp_25624ae3a5\"\n}\n"
headers:
CF-Cache-Status:
- DYNAMIC
CF-RAY:
- 8c2699802ebf14f2-LAX
- 8c365d9dfe8c221a-MIA
Connection:
- keep-alive
Content-Encoding:
@@ -77,7 +77,7 @@ interactions:
Content-Type:
- application/json
Date:
- Fri, 13 Sep 2024 07:59:45 GMT
- Sun, 15 Sep 2024 05:55:04 GMT
Server:
- cloudflare
Transfer-Encoding:
@@ -91,7 +91,7 @@ interactions:
openai-organization:
- crewai-iuxna1
openai-processing-ms:
- '502'
- '493'
openai-version:
- '2020-10-01'
strict-transport-security:
@@ -109,7 +109,7 @@ interactions:
x-ratelimit-reset-tokens:
- 0s
x-request-id:
- req_90aa52392bf0457216ae801308cf1e4c
- req_06480ffe8c7c46462847c105d07948cf
http_version: HTTP/1.1
status_code: 200
- request:
@@ -131,10 +131,10 @@ interactions:
final answer: The result of the multiplication.\nyou MUST return the actual
complete content as the final answer, not a summary.\n\nBegin! This is VERY
important to you, use the tools available and give your best Final Answer, your
job depends on it!\n\nThought:"}, {"role": "assistant", "content": "I need to
find out the result of multiplying 3 by 4.\n\nAction: multiplier\nAction Input:
{\"first_number\": 3, \"second_number\": 4}\nObservation: 12"}], "model": "gpt-4o",
"stop": ["\nObservation"]}'
job depends on it!\n\nThought:"}, {"role": "assistant", "content": "To find
the result of 3 times 4, I will use the multiplier tool.\n\nAction: multiplier\nAction
Input: {\"first_number\": 3, \"second_number\": 4}\nObservation: 12"}], "model":
"gpt-4o", "stop": ["\nResult"]}'
headers:
accept:
- application/json
@@ -143,12 +143,12 @@ interactions:
connection:
- keep-alive
content-length:
- '1675'
- '1682'
content-type:
- application/json
cookie:
- __cf_bm=r6BNUnXat.26mviZiJYUf7Qj4ea5gbt_oPxyClKcVOE-1726214380-1.0.1.1-2S3G10sPdiG2syQSO8wKWXE7Nmdgt88imgakr81w9DemMH8mVDg0q6r9ANx6tM4_CPvgGQlMVstDhDRkIDwhzg;
_cfuvid=dp2yoCmGHVlURh_U78_UoIfnhcO5UhufnL5whkUSMTQ-1726214380689-0.0.1.1-604800000
- __cf_bm=J1VIPhfusyyXtwM.1L9zbe3jdnU7NVyHC3AWiKXO280-1726379702-1.0.1.1-LDa9RyXFli18t4ZEuVAENTChdNAkRtdWXRkRLbBHbCXdobugQ3T.arhMpSKwtnBRXKPcC4b66UA7BsSy1VXDHQ;
_cfuvid=Bz2zevKuFYZqnEFwqmqVHcRo5pT0fm0fTtc_6_VQs4g-1726379702153-0.0.1.1-604800000
host:
- api.openai.com
user-agent:
@@ -172,20 +172,19 @@ interactions:
method: POST
uri: https://api.openai.com/v1/chat/completions
response:
content: "{\n \"id\": \"chatcmpl-A6vVSVFbRTExkzJz0hC4roTU684hm\",\n \"object\":
\"chat.completion\",\n \"created\": 1726214386,\n \"model\": \"gpt-4o-2024-05-13\",\n
content: "{\n \"id\": \"chatcmpl-A7cVs8Jl9JwOFzAM2aRBYjiQqvJVn\",\n \"object\":
\"chat.completion\",\n \"created\": 1726379704,\n \"model\": \"gpt-4o-2024-05-13\",\n
\ \"choices\": [\n {\n \"index\": 0,\n \"message\": {\n \"role\":
\"assistant\",\n \"content\": \"Thought: I now know the final answer.\\nFinal
Answer: The result of multiplying 3 times 4 is 12.\",\n \"refusal\":
null\n },\n \"logprobs\": null,\n \"finish_reason\": \"stop\"\n
\ }\n ],\n \"usage\": {\n \"prompt_tokens\": 353,\n \"completion_tokens\":
25,\n \"total_tokens\": 378,\n \"completion_tokens_details\": {\n \"reasoning_tokens\":
0\n }\n },\n \"system_fingerprint\": \"fp_25624ae3a5\"\n}\n"
\"assistant\",\n \"content\": \"Thought: I now know the final answer\\nFinal
Answer: 12\",\n \"refusal\": null\n },\n \"logprobs\": null,\n
\ \"finish_reason\": \"stop\"\n }\n ],\n \"usage\": {\n \"prompt_tokens\":
356,\n \"completion_tokens\": 14,\n \"total_tokens\": 370,\n \"completion_tokens_details\":
{\n \"reasoning_tokens\": 0\n }\n },\n \"system_fingerprint\": \"fp_25624ae3a5\"\n}\n"
headers:
CF-Cache-Status:
- DYNAMIC
CF-RAY:
- 8c2699896f4514f2-LAX
- 8c365da2f911221a-MIA
Connection:
- keep-alive
Content-Encoding:
@@ -193,7 +192,7 @@ interactions:
Content-Type:
- application/json
Date:
- Fri, 13 Sep 2024 07:59:46 GMT
- Sun, 15 Sep 2024 05:55:05 GMT
Server:
- cloudflare
Transfer-Encoding:
@@ -207,7 +206,7 @@ interactions:
openai-organization:
- crewai-iuxna1
openai-processing-ms:
- '404'
- '227'
openai-version:
- '2020-10-01'
strict-transport-security:
@@ -219,13 +218,13 @@ interactions:
x-ratelimit-remaining-requests:
- '9999'
x-ratelimit-remaining-tokens:
- '29999611'
- '29999609'
x-ratelimit-reset-requests:
- 6ms
x-ratelimit-reset-tokens:
- 0s
x-request-id:
- req_d918c8cc37ca202074c322f334ab6a2f
- req_2b60b35139ad7a346c8d3edb964ecd2e
http_version: HTTP/1.1
status_code: 200
version: 1