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

@@ -10,7 +10,7 @@ interactions:
is the expect criteria for your final answer: {points} bullet points about {topic}.\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"]}'
Answer, your job depends on it!\n\nThought:"}], "model": "gpt-4o", "stop": ["\nResult"]}'
headers:
accept:
- application/json
@@ -19,12 +19,12 @@ interactions:
connection:
- keep-alive
content-length:
- '902'
- '897'
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=Bz2zevKuFYZqnEFwqmqVHcRo5pT0fm0fTtc_6_VQs4g-1726379702153-0.0.1.1-604800000;
__cf_bm=NOn1n25T8u1eKhL05A4mBgpDvwojMRvK1SB7TGDEjFU-1726383316-1.0.1.1-kUyz.anEyDoe9wXgChl5UWW3Z9pFTgIpyZfqI6rucN2vXQHH6k.DSvUtilpKOPnhI4LtmQYBhxkJ6wKLfS3J8Q
host:
- api.openai.com
user-agent:
@@ -48,46 +48,21 @@ interactions:
method: POST
uri: https://api.openai.com/v1/chat/completions
response:
content: "{\n \"id\": \"chatcmpl-A6vlZhchuKDoVc5LCYKCcaPBdJctE\",\n \"object\":
\"chat.completion\",\n \"created\": 1726215385,\n \"model\": \"gpt-4o-2024-05-13\",\n
content: "{\n \"id\": \"chatcmpl-A7dXA1fCP0pozLRZ7JejylBObenF5\",\n \"object\":
\"chat.completion\",\n \"created\": 1726383628,\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\\n\\nFinal
Answer: \\n\\nAnalysis of Climate Change:\\n\\n1. **Scientific Consensus**:
The overwhelming majority of scientists agree that climate change is real and
primarily driven by human activities, particularly the burning of fossil fuels.
This consensus is supported by a substantial body of evidence, including rising
global temperatures, melting ice caps, and increasing sea levels.\\n\\n2. **Economic
Impact**: Climate change has significant economic implications. It affects agricultural
productivity, damages infrastructure through extreme weather events, and imposes
costs on health systems due to increased incidence of climate-related diseases.
Transitioning to renewable energy, although initially costly, is seen as a necessary
step to mitigate these impacts.\\n\\n3. **Environmental Consequences**: The
environmental impacts of climate change are profound. They include loss of biodiversity,
habitat destruction, and alteration of ecosystems. Coral reefs, for instance,
are severely threatened by ocean acidification and rising sea temperatures,
which affect marine life and the livelihoods dependent on them.\\n\\n4. **Policy
and Legislation**: Governments around the world are implementing policies to
combat climate change. These include the Paris Agreement, which aims to limit
global warming to below 2 degrees Celsius above pre-industrial levels. Carbon
pricing, emission trading systems, and renewable energy incentives are some
of the tools being employed to achieve these goals.\\n\\n5. **Social and Ethical
Dimensions**: Climate change also poses social and ethical challenges. It disproportionately
affects vulnerable populations, including low-income communities, indigenous
peoples, and countries with less economic resilience. There is a growing discourse
on climate justice, emphasizing the need for equitable solutions that consider
those most affected by climate impacts.\\n\\nBy considering these key points,
it is evident that climate change is a complex issue that requires a multifaceted
approach to address effectively. The interplay between science, economics, environment,
policy, and social justice highlights the need for coordinated global action.\",\n
\ \"refusal\": null\n },\n \"logprobs\": null,\n \"finish_reason\":
\"stop\"\n }\n ],\n \"usage\": {\n \"prompt_tokens\": 178,\n \"completion_tokens\":
378,\n \"total_tokens\": 556,\n \"completion_tokens_details\": {\n \"reasoning_tokens\":
\"assistant\",\n \"content\": \"Thought: I now can give a great answer
\ \\nFinal Answer: Please provide the specific topic and the points you would
like me to discuss about the topic.\",\n \"refusal\": null\n },\n
\ \"logprobs\": null,\n \"finish_reason\": \"stop\"\n }\n ],\n
\ \"usage\": {\n \"prompt_tokens\": 178,\n \"completion_tokens\": 31,\n
\ \"total_tokens\": 209,\n \"completion_tokens_details\": {\n \"reasoning_tokens\":
0\n }\n },\n \"system_fingerprint\": \"fp_25624ae3a5\"\n}\n"
headers:
CF-Cache-Status:
- DYNAMIC
CF-RAY:
- 8c26b1ec3aad2ab9-LAX
- 8c36bd6dcdfd7454-MIA
Connection:
- keep-alive
Content-Encoding:
@@ -95,7 +70,7 @@ interactions:
Content-Type:
- application/json
Date:
- Fri, 13 Sep 2024 08:16:30 GMT
- Sun, 15 Sep 2024 07:00:29 GMT
Server:
- cloudflare
Transfer-Encoding:
@@ -109,7 +84,7 @@ interactions:
openai-organization:
- crewai-iuxna1
openai-processing-ms:
- '4843'
- '359'
openai-version:
- '2020-10-01'
strict-transport-security:
@@ -127,7 +102,7 @@ interactions:
x-ratelimit-reset-tokens:
- 0s
x-request-id:
- req_ce683c0cf68f34b6c4012cb3dc721f2d
- req_390f92ba6820b394eb7f0c14df34828b
http_version: HTTP/1.1
status_code: 200
version: 1