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

@@ -11,7 +11,7 @@ interactions:
for your final answer: The score of the title.\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"]}'
on it!\n\nThought:"}], "model": "gpt-4o", "stop": ["\nObservation:"]}'
headers:
accept:
- application/json
@@ -20,12 +20,12 @@ interactions:
connection:
- keep-alive
content-length:
- '942'
- '943'
content-type:
- application/json
cookie:
- __cf_bm=pgsskMPipgeSB6HhnkjwcOEfengIvt0p9whKNmTJVLs-1726215280-1.0.1.1-Gtqb.nO1U.cHTnd9mR9sEA5tpVo1.pexRrxqXOkn.6Mzja8mLG1URJsOLTfjMAAYpWaUQe4Rjmnr6lqQk5hAxQ;
_cfuvid=dp2yoCmGHVlURh_U78_UoIfnhcO5UhufnL5whkUSMTQ-1726214380689-0.0.1.1-604800000
- _cfuvid=d478DDnbHGcX0KfC1v3SaUtZkH3QCVYNP.8vZzAxM70-1726433102381-0.0.1.1-604800000;
__cf_bm=iX6AD0EnIDAC3.5YubicdPI1J3hy9z6JRxUoT3GwNaw-1726435731-1.0.1.1-fAXfUKgsOdGKaKdEJuzOliOzbicD8qSYnz3pdkY1ig3J.sIhA3FX.MJsR99rjurGvmwNN_iHmEtul9MCm4znUg
host:
- api.openai.com
user-agent:
@@ -49,19 +49,19 @@ interactions:
method: POST
uri: https://api.openai.com/v1/chat/completions
response:
content: "{\n \"id\": \"chatcmpl-A6vo0e2Fbp3uynvscdmtgoOuZL7iF\",\n \"object\":
\"chat.completion\",\n \"created\": 1726215536,\n \"model\": \"gpt-4o-2024-05-13\",\n
content: "{\n \"id\": \"chatcmpl-A7r6TLoRUWy921kQ5qMD78kLXs3Xw\",\n \"object\":
\"chat.completion\",\n \"created\": 1726435789,\n \"model\": \"gpt-4o-2024-05-13\",\n
\ \"choices\": [\n {\n \"index\": 0,\n \"message\": {\n \"role\":
\"assistant\",\n \"content\": \"I now can give a great answer\\nFinal
\"assistant\",\n \"content\": \"Thought: I now can give a great answer\\nFinal
Answer: 4\",\n \"refusal\": null\n },\n \"logprobs\": null,\n
\ \"finish_reason\": \"stop\"\n }\n ],\n \"usage\": {\n \"prompt_tokens\":
186,\n \"completion_tokens\": 13,\n \"total_tokens\": 199,\n \"completion_tokens_details\":
186,\n \"completion_tokens\": 15,\n \"total_tokens\": 201,\n \"completion_tokens_details\":
{\n \"reasoning_tokens\": 0\n }\n },\n \"system_fingerprint\": \"fp_25624ae3a5\"\n}\n"
headers:
CF-Cache-Status:
- DYNAMIC
CF-RAY:
- 8c26b59cbca92ab9-LAX
- 8c3bb6e4383309da-MIA
Connection:
- keep-alive
Content-Encoding:
@@ -69,7 +69,7 @@ interactions:
Content-Type:
- application/json
Date:
- Fri, 13 Sep 2024 08:18:56 GMT
- Sun, 15 Sep 2024 21:29:49 GMT
Server:
- cloudflare
Transfer-Encoding:
@@ -83,7 +83,7 @@ interactions:
openai-organization:
- crewai-iuxna1
openai-processing-ms:
- '362'
- '241'
openai-version:
- '2020-10-01'
strict-transport-security:
@@ -101,7 +101,7 @@ interactions:
x-ratelimit-reset-tokens:
- 0s
x-request-id:
- req_fd7cccf142ed860b502cb706e3a175fb
- req_f6532dd84d4f388f10550b030d105b8a
http_version: HTTP/1.1
status_code: 200
- request:
@@ -124,8 +124,8 @@ interactions:
content-type:
- application/json
cookie:
- __cf_bm=n_BvuurPQNYmr4Xe9Yg_foBSFxwgwMpaTEdPHdqVgGQ-1726214721-1.0.1.1-WYudPPoSnx6FZSF9AMgWsJ8MlooxW8CnQiO2OS.lbnFdxsvYvd08ZsU2GLr1qne3Wxw6ebt_7iRVpoFdpAvarA;
_cfuvid=rXgn0vlVZcDxXcw1CtGMaLx8.GKpg0HOhhM.Ai36L2I-1726214721376-0.0.1.1-604800000
- _cfuvid=usEJ4CqBEeFKPY2p4ep.hqTm_Kv7nTux4UZ5onA7qiA-1726435785065-0.0.1.1-604800000;
__cf_bm=Gn1rhMrfUI6EJyNkB5Qm3lhyOhRDJCtb39JFy.OQwEY-1726435785-1.0.1.1-SJP_WyXbe0yT3ccd6UAUdsrQFlzSWOF_18ykMnDPjBwQFDfEFnOfjpBBhfyakBRKMVGuzAjRAV62fK5JsjBOFQ
host:
- api.openai.com
user-agent:
@@ -149,22 +149,22 @@ interactions:
method: POST
uri: https://api.openai.com/v1/chat/completions
response:
content: "{\n \"id\": \"chatcmpl-A6vo1pRFdSS6ZQarN2z4am69jeQPP\",\n \"object\":
\"chat.completion\",\n \"created\": 1726215537,\n \"model\": \"gpt-4o-2024-05-13\",\n
content: "{\n \"id\": \"chatcmpl-A7r6UT9AIBzSlrItZvd9ZCoUk6tkz\",\n \"object\":
\"chat.completion\",\n \"created\": 1726435790,\n \"model\": \"gpt-4o-2024-05-13\",\n
\ \"choices\": [\n {\n \"index\": 0,\n \"message\": {\n \"role\":
\"assistant\",\n \"content\": null,\n \"tool_calls\": [\n {\n
\ \"id\": \"call_3IEtulqy2SSezCpHmnb0Gy5Y\",\n \"type\":
\ \"id\": \"call_pQwPoYQhzvxVBPIrx2zviAZC\",\n \"type\":
\"function\",\n \"function\": {\n \"name\": \"ScoreOutput\",\n
\ \"arguments\": \"{\\\"score\\\":4}\"\n }\n }\n
\ ],\n \"refusal\": null\n },\n \"logprobs\": null,\n
\ \"finish_reason\": \"stop\"\n }\n ],\n \"usage\": {\n \"prompt_tokens\":
80,\n \"completion_tokens\": 5,\n \"total_tokens\": 85,\n \"completion_tokens_details\":
{\n \"reasoning_tokens\": 0\n }\n },\n \"system_fingerprint\": \"fp_992d1ea92d\"\n}\n"
{\n \"reasoning_tokens\": 0\n }\n },\n \"system_fingerprint\": \"fp_25624ae3a5\"\n}\n"
headers:
CF-Cache-Status:
- DYNAMIC
CF-RAY:
- 8c26b5a53db008d8-LAX
- 8c3bb6e7be677435-MIA
Connection:
- keep-alive
Content-Encoding:
@@ -172,7 +172,7 @@ interactions:
Content-Type:
- application/json
Date:
- Fri, 13 Sep 2024 08:18:58 GMT
- Sun, 15 Sep 2024 21:29:50 GMT
Server:
- cloudflare
Transfer-Encoding:
@@ -186,7 +186,7 @@ interactions:
openai-organization:
- crewai-iuxna1
openai-processing-ms:
- '475'
- '184'
openai-version:
- '2020-10-01'
strict-transport-security:
@@ -204,7 +204,7 @@ interactions:
x-ratelimit-reset-tokens:
- 0s
x-request-id:
- req_ed92640e80849cf8fdf6d201087e579a
- req_996125ec5af40f4459da1187e77634e9
http_version: HTTP/1.1
status_code: 200
version: 1