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

@@ -12,7 +12,7 @@ interactions:
shared.\nyou MUST return the actual complete content as the final answer, not
a summary.\n\nThis is the context you''re working with:\nI heard you LOVE them\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"]}'
Answer, your job depends on it!\n\nThought:"}], "model": "gpt-4o", "stop": ["\nResult"]}'
headers:
accept:
- application/json
@@ -21,12 +21,12 @@ interactions:
connection:
- keep-alive
content-length:
- '1048'
- '1043'
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:
@@ -50,26 +50,31 @@ interactions:
method: POST
uri: https://api.openai.com/v1/chat/completions
response:
content: "{\n \"id\": \"chatcmpl-A6vf21WmSSHP1NWd6mOZbyMFwaPeT\",\n \"object\":
\"chat.completion\",\n \"created\": 1726214980,\n \"model\": \"gpt-4o-2024-05-13\",\n
content: "{\n \"id\": \"chatcmpl-A7cj4paBzxYOB7K6gGY1MuBpJKoS2\",\n \"object\":
\"chat.completion\",\n \"created\": 1726380522,\n \"model\": \"gpt-4o-2024-05-13\",\n
\ \"choices\": [\n {\n \"index\": 0,\n \"message\": {\n \"role\":
\"assistant\",\n \"content\": \"Thought: I now can give a great answer\\nFinal
Answer: As a researcher specialized in technology, I neither love nor hate AI
agents. My role is to objectively analyze their capabilities, impacts, and potential.
AI agents have many beneficial applications, such as improving healthcare, optimizing
logistics, and enhancing user experiences. However, there are also concerns
regarding privacy, ethical implications, and job displacement. My professional
stance is to critically evaluate both the advantages and the challenges, ensuring
that the development and deployment of AI agents are conducted responsibly and
ethically.\",\n \"refusal\": null\n },\n \"logprobs\": null,\n
\ \"finish_reason\": \"stop\"\n }\n ],\n \"usage\": {\n \"prompt_tokens\":
199,\n \"completion_tokens\": 107,\n \"total_tokens\": 306,\n \"completion_tokens_details\":
{\n \"reasoning_tokens\": 0\n }\n },\n \"system_fingerprint\": \"fp_25624ae3a5\"\n}\n"
Answer: As an expert researcher specialized in technology and AI, it's important
to maintain an objective and balanced perspective. I do not harbor emotions
such as love or hate towards AI agents. Instead, I appreciate the capabilities
and potential they offer.\\n\\nAI agents can significantly enhance productivity,
provide valuable insights through data analysis, and automate repetitive tasks,
thereby allowing humans to focus on more complex and creative endeavors. However,
it's also crucial to address ethical considerations, potential biases, and the
implications of their deployment in various sectors.\\n\\nTherefore, my stance
isn't one of emotional attachment but rather a professional appreciation of
both the opportunities and challenges presented by AI agents. This balanced
view helps in conducting thorough and unbiased research, which is essential
for advancing our understanding and responsible use of AI technologies.\",\n
\ \"refusal\": null\n },\n \"logprobs\": null,\n \"finish_reason\":
\"stop\"\n }\n ],\n \"usage\": {\n \"prompt_tokens\": 199,\n \"completion_tokens\":
162,\n \"total_tokens\": 361,\n \"completion_tokens_details\": {\n \"reasoning_tokens\":
0\n }\n },\n \"system_fingerprint\": \"fp_25624ae3a5\"\n}\n"
headers:
CF-Cache-Status:
- DYNAMIC
CF-RAY:
- 8c26a80a3a2f2ab9-LAX
- 8c367197985f745a-MIA
Connection:
- keep-alive
Content-Encoding:
@@ -77,7 +82,7 @@ interactions:
Content-Type:
- application/json
Date:
- Fri, 13 Sep 2024 08:09:41 GMT
- Sun, 15 Sep 2024 06:08:43 GMT
Server:
- cloudflare
Transfer-Encoding:
@@ -91,7 +96,7 @@ interactions:
openai-organization:
- crewai-iuxna1
openai-processing-ms:
- '1227'
- '1430'
openai-version:
- '2020-10-01'
strict-transport-security:
@@ -109,7 +114,7 @@ interactions:
x-ratelimit-reset-tokens:
- 0s
x-request-id:
- req_aa98d851407f05a0803bfebce008bc88
- req_b21ae0470662274e316335c18e9fa5a2
http_version: HTTP/1.1
status_code: 200
version: 1