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

@@ -1,178 +1,53 @@
interactions:
- request:
body: '{"messages": [{"role": "system", "content": "You are CEO. You''re an long
time CEO of a content creation agency with a Senior Writer on the team. You''re
now working on a new project and want to make sure the content produced is amazing.\nYour
personal goal is: Make sure the writers in your company produce amazing content.\nYou
ONLY have access to the following tools, and should NEVER make up tools that
are not listed here:\n\nTool Name: multiplier(*args: Any, **kwargs: Any) ->
Any\nTool Description: multiplier(first_number: ''integer'', second_number:
''integer'') - Useful for when you need to multiply two numbers together. \nTool
Arguments: {''first_number'': {''title'': ''First Number'', ''type'': ''integer''},
''second_number'': {''title'': ''Second Number'', ''type'': ''integer''}}\nTool
Name: Delegate work to coworker(task: str, context: str, coworker: Optional[str]
= None, **kwargs)\nTool Description: Delegate a specific task to one of the
following coworkers: Researcher\nThe input to this tool should be the coworker,
the task you want them to do, and ALL necessary context to execute the task,
they know nothing about the task, so share absolute everything you know, don''t
reference things but instead explain them.\nTool Arguments: {''task'': {''title'':
''Task'', ''type'': ''string''}, ''context'': {''title'': ''Context'', ''type'':
''string''}, ''coworker'': {''title'': ''Coworker'', ''type'': ''string''},
''kwargs'': {''title'': ''Kwargs'', ''type'': ''object''}}\nTool Name: Ask question
to coworker(question: str, context: str, coworker: Optional[str] = None, **kwargs)\nTool
Description: Ask a specific question to one of the following coworkers: Researcher\nThe
input to this tool should be the coworker, the question you have for them, and
ALL necessary context to ask the question properly, they know nothing about
the question, so share absolute everything you know, don''t reference things
but instead explain them.\nTool Arguments: {''question'': {''title'': ''Question'',
''type'': ''string''}, ''context'': {''title'': ''Context'', ''type'': ''string''},
''coworker'': {''title'': ''Coworker'', ''type'': ''string''}, ''kwargs'': {''title'':
''Kwargs'', ''type'': ''object''}}\n\nUse the following format:\n\nThought:
you should always think about what to do\nAction: the action to take, only one
name of [multiplier, Delegate work to coworker, Ask question to coworker], just
the name, exactly as it''s written.\nAction Input: the input to the action,
just a simple python dictionary, enclosed in curly braces, using \" to wrap
keys and values.\nObservation: the result of the action\n\nOnce all necessary
information is gathered:\n\nThought: I now know the final answer\nFinal Answer:
the final answer to the original input question\n"}, {"role": "user", "content":
"\nCurrent Task: What is 2 tims 6? Return only the number.\n\nThis is the expect
criteria for your final answer: the result of 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"]}'
headers:
accept:
- application/json
accept-encoding:
- gzip, deflate
connection:
- keep-alive
content-length:
- '3109'
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
host:
- api.openai.com
user-agent:
- OpenAI/Python 1.45.0
x-stainless-arch:
- arm64
x-stainless-async:
- 'false'
x-stainless-lang:
- python
x-stainless-os:
- MacOS
x-stainless-package-version:
- 1.45.0
x-stainless-raw-response:
- 'true'
x-stainless-runtime:
- CPython
x-stainless-runtime-version:
- 3.11.7
method: POST
uri: https://api.openai.com/v1/chat/completions
response:
content: "{\n \"id\": \"chatcmpl-A6viypFjQCjtHUGu9CO7RqmElXDhG\",\n \"object\":
\"chat.completion\",\n \"created\": 1726215224,\n \"model\": \"gpt-4o-2024-05-13\",\n
\ \"choices\": [\n {\n \"index\": 0,\n \"message\": {\n \"role\":
\"assistant\",\n \"content\": \"Thought: I need to find the result of
multiplying 2 by 6. To do this, I should use the multiplier tool.\\n\\nAction:
multiplier\\nAction Input: {\\\"first_number\\\": 2, \\\"second_number\\\":
6}\",\n \"refusal\": null\n },\n \"logprobs\": null,\n \"finish_reason\":
\"stop\"\n }\n ],\n \"usage\": {\n \"prompt_tokens\": 691,\n \"completion_tokens\":
48,\n \"total_tokens\": 739,\n \"completion_tokens_details\": {\n \"reasoning_tokens\":
0\n }\n },\n \"system_fingerprint\": \"fp_25624ae3a5\"\n}\n"
headers:
CF-Cache-Status:
- DYNAMIC
CF-RAY:
- 8c26ae029ae52ab9-LAX
Connection:
- keep-alive
Content-Encoding:
- gzip
Content-Type:
- application/json
Date:
- Fri, 13 Sep 2024 08:13:45 GMT
Server:
- cloudflare
Transfer-Encoding:
- chunked
X-Content-Type-Options:
- nosniff
access-control-expose-headers:
- X-Request-ID
alt-svc:
- h3=":443"; ma=86400
openai-organization:
- crewai-iuxna1
openai-processing-ms:
- '596'
openai-version:
- '2020-10-01'
strict-transport-security:
- max-age=15552000; includeSubDomains; preload
x-ratelimit-limit-requests:
- '10000'
x-ratelimit-limit-tokens:
- '30000000'
x-ratelimit-remaining-requests:
- '9999'
x-ratelimit-remaining-tokens:
- '29999244'
x-ratelimit-reset-requests:
- 6ms
x-ratelimit-reset-tokens:
- 1ms
x-request-id:
- req_33bb245000aa6a93e237ca7cf7310efe
http_version: HTTP/1.1
status_code: 200
- request:
body: !!binary |
CrUQCiQKIgoMc2VydmljZS5uYW1lEhIKEGNyZXdBSS10ZWxlbWV0cnkSjBAKEgoQY3Jld2FpLnRl
bGVtZXRyeRKQAgoQGAAeOpODn168GlSRzUMetxII/ZN0V9K4RSQqDlRhc2sgRXhlY3V0aW9uMAE5
4KBJlZe/9BdBqN4oaJm/9BdKLgoIY3Jld19rZXkSIgogOWJmMmNkZTZiYzVjNDIwMWQ2OWI5YmNm
ZmYzNWJmYjlKMQoHY3Jld19pZBImCiQ1NzNmZWQ5ZS01MzhkLTRkOGUtYmUxNy0zMWI5M2Y2MzZl
ZTNKLgoIdGFza19rZXkSIgogYzUwMmM1NzQ1YzI3ODFhZjUxYjJmM2VmNWQ2MmZjNzRKMQoHd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19uYW1lcyI6IFsibXVs
dGlwbGllciJdfSwgeyJrZXkiOiAiODBhYTc1Njk5ZjRhZDYyOTFkYmUxMGU0ZDY2OTgwMjkiLCAi
aWQiOiAiYjljNzE1ZjItZmI2OC00MzYxLThmM2QtNjk4OGUzZmY3MTM3IiwgImFzeW5jX2V4ZWN1
dGlvbj8iOiBmYWxzZSwgImh1bWFuX2lucHV0PyI6IGZhbHNlLCAiYWdlbnRfcm9sZSI6ICJSZXNl
YXJjaGVyIiwgImFnZW50X2tleSI6ICI4YmQyMTM5YjU5NzUxODE1MDZlNDFmZDljNDU2M2Q3NSIs
ICJ0b29sc19uYW1lcyI6IFsibXVsdGlwbGllciJdfV16AhgBhQEAAQAAEo4CChA1Y9h+TtmYRAWJ
pGICtVipEgijH6seZPPWvyoMVGFzayBDcmVhdGVkMAE5iEOgqiZW9RdBKE2hqiZW9RdKLgoIY3Jl
d19rZXkSIgogNDczZTRkYmQyOTk4NzcxMjBlYjc1YzI1ZGE2MjIzNzVKMQoHY3Jld19pZBImCiRm
ZWVmN2QzOC0wYmRhLTRhNTAtYjM3Yy1mNmRmMzdlNzY4NzJKLgoIdGFza19rZXkSIgogMDhjZGU5
MDkzOTE2OTk0NTczMzAyYzcxMTdhOTZjZDVKMQoHdGFza19pZBImCiRmYjE2OWIwYi0yZTRmLTQ1
MWItYmZhZS0wNWRiMzI2Y2U0OTh6AhgBhQEAAQAA
headers:
Accept:
- '*/*'
@@ -181,7 +56,7 @@ interactions:
Connection:
- keep-alive
Content-Length:
- '2104'
- '2652'
Content-Type:
- application/x-protobuf
User-Agent:
@@ -197,7 +72,7 @@ interactions:
Content-Type:
- application/x-protobuf
Date:
- Fri, 13 Sep 2024 08:13:46 GMT
- Sun, 15 Sep 2024 06:12:37 GMT
status:
code: 200
message: OK
@@ -241,10 +116,7 @@ interactions:
criteria for your final answer: the result of 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": "Thought:
I need to find the result of multiplying 2 by 6. To do this, I should use the
multiplier tool.\n\nAction: multiplier\nAction Input: {\"first_number\": 2,
\"second_number\": 6}\nObservation: 12"}], "model": "gpt-4o", "stop": ["\nObservation"]}'
your job depends on it!\n\nThought:"}], "model": "gpt-4o", "stop": ["\nResult"]}'
headers:
accept:
- application/json
@@ -253,12 +125,12 @@ interactions:
connection:
- keep-alive
content-length:
- '3348'
- '3104'
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=e.frhlfi1m.8j1hzfGzahuOh4rgR9gvx.2zCHQ2w_Vs-1726380612-1.0.1.1-T58wIEXn0GTV8AZMALaUyULORFkNEBuxpds8RSWAM0Ltrg2U7jLBEKs0nwIneMiBAiiOmyZaoaH2RyLtNcunLQ;
_cfuvid=Bz2zevKuFYZqnEFwqmqVHcRo5pT0fm0fTtc_6_VQs4g-1726379702153-0.0.1.1-604800000
host:
- api.openai.com
user-agent:
@@ -282,19 +154,21 @@ interactions:
method: POST
uri: https://api.openai.com/v1/chat/completions
response:
content: "{\n \"id\": \"chatcmpl-A6vj0QcWiNAzGUI97VTWr1OvRXlbA\",\n \"object\":
\"chat.completion\",\n \"created\": 1726215226,\n \"model\": \"gpt-4o-2024-05-13\",\n
content: "{\n \"id\": \"chatcmpl-A7cmq5pmlNwC0r75t38JnYsdw8IM2\",\n \"object\":
\"chat.completion\",\n \"created\": 1726380756,\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\\n\\nFinal
Answer: 12\",\n \"refusal\": null\n },\n \"logprobs\": null,\n
\ \"finish_reason\": \"stop\"\n }\n ],\n \"usage\": {\n \"prompt_tokens\":
747,\n \"completion_tokens\": 14,\n \"total_tokens\": 761,\n \"completion_tokens_details\":
{\n \"reasoning_tokens\": 0\n }\n },\n \"system_fingerprint\": \"fp_25624ae3a5\"\n}\n"
\"assistant\",\n \"content\": \"Thought: To find the product of 2 and
6, I need to use the multiplier tool.\\n\\nAction: multiplier\\nAction Input:
{\\\"first_number\\\": 2, \\\"second_number\\\": 6}\",\n \"refusal\":
null\n },\n \"logprobs\": null,\n \"finish_reason\": \"stop\"\n
\ }\n ],\n \"usage\": {\n \"prompt_tokens\": 691,\n \"completion_tokens\":
42,\n \"total_tokens\": 733,\n \"completion_tokens_details\": {\n \"reasoning_tokens\":
0\n }\n },\n \"system_fingerprint\": \"fp_25624ae3a5\"\n}\n"
headers:
CF-Cache-Status:
- DYNAMIC
CF-RAY:
- 8c26ae0c7c3f2ab9-LAX
- 8c367750bfb0745a-MIA
Connection:
- keep-alive
Content-Encoding:
@@ -302,7 +176,7 @@ interactions:
Content-Type:
- application/json
Date:
- Fri, 13 Sep 2024 08:13:47 GMT
- Sun, 15 Sep 2024 06:12:37 GMT
Server:
- cloudflare
Transfer-Encoding:
@@ -316,7 +190,7 @@ interactions:
openai-organization:
- crewai-iuxna1
openai-processing-ms:
- '406'
- '524'
openai-version:
- '2020-10-01'
strict-transport-security:
@@ -328,13 +202,149 @@ interactions:
x-ratelimit-remaining-requests:
- '9999'
x-ratelimit-remaining-tokens:
- '29999196'
- '29999244'
x-ratelimit-reset-requests:
- 6ms
x-ratelimit-reset-tokens:
- 1ms
x-request-id:
- req_5cd7e9e14806611d0dc5cd89a03caa79
- req_3b885ee527af307dd1f101a1d160e67b
http_version: HTTP/1.1
status_code: 200
- request:
body: '{"messages": [{"role": "system", "content": "You are CEO. You''re an long
time CEO of a content creation agency with a Senior Writer on the team. You''re
now working on a new project and want to make sure the content produced is amazing.\nYour
personal goal is: Make sure the writers in your company produce amazing content.\nYou
ONLY have access to the following tools, and should NEVER make up tools that
are not listed here:\n\nTool Name: multiplier(*args: Any, **kwargs: Any) ->
Any\nTool Description: multiplier(first_number: ''integer'', second_number:
''integer'') - Useful for when you need to multiply two numbers together. \nTool
Arguments: {''first_number'': {''title'': ''First Number'', ''type'': ''integer''},
''second_number'': {''title'': ''Second Number'', ''type'': ''integer''}}\nTool
Name: Delegate work to coworker(task: str, context: str, coworker: Optional[str]
= None, **kwargs)\nTool Description: Delegate a specific task to one of the
following coworkers: Researcher\nThe input to this tool should be the coworker,
the task you want them to do, and ALL necessary context to execute the task,
they know nothing about the task, so share absolute everything you know, don''t
reference things but instead explain them.\nTool Arguments: {''task'': {''title'':
''Task'', ''type'': ''string''}, ''context'': {''title'': ''Context'', ''type'':
''string''}, ''coworker'': {''title'': ''Coworker'', ''type'': ''string''},
''kwargs'': {''title'': ''Kwargs'', ''type'': ''object''}}\nTool Name: Ask question
to coworker(question: str, context: str, coworker: Optional[str] = None, **kwargs)\nTool
Description: Ask a specific question to one of the following coworkers: Researcher\nThe
input to this tool should be the coworker, the question you have for them, and
ALL necessary context to ask the question properly, they know nothing about
the question, so share absolute everything you know, don''t reference things
but instead explain them.\nTool Arguments: {''question'': {''title'': ''Question'',
''type'': ''string''}, ''context'': {''title'': ''Context'', ''type'': ''string''},
''coworker'': {''title'': ''Coworker'', ''type'': ''string''}, ''kwargs'': {''title'':
''Kwargs'', ''type'': ''object''}}\n\nUse the following format:\n\nThought:
you should always think about what to do\nAction: the action to take, only one
name of [multiplier, Delegate work to coworker, Ask question to coworker], just
the name, exactly as it''s written.\nAction Input: the input to the action,
just a simple python dictionary, enclosed in curly braces, using \" to wrap
keys and values.\nObservation: the result of the action\n\nOnce all necessary
information is gathered:\n\nThought: I now know the final answer\nFinal Answer:
the final answer to the original input question\n"}, {"role": "user", "content":
"\nCurrent Task: What is 2 tims 6? Return only the number.\n\nThis is the expect
criteria for your final answer: the result of 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": "Thought:
To find the product of 2 and 6, I need to use the multiplier tool.\n\nAction:
multiplier\nAction Input: {\"first_number\": 2, \"second_number\": 6}\nObservation:
12"}], "model": "gpt-4o", "stop": ["\nResult"]}'
headers:
accept:
- application/json
accept-encoding:
- gzip, deflate
connection:
- keep-alive
content-length:
- '3315'
content-type:
- application/json
cookie:
- __cf_bm=e.frhlfi1m.8j1hzfGzahuOh4rgR9gvx.2zCHQ2w_Vs-1726380612-1.0.1.1-T58wIEXn0GTV8AZMALaUyULORFkNEBuxpds8RSWAM0Ltrg2U7jLBEKs0nwIneMiBAiiOmyZaoaH2RyLtNcunLQ;
_cfuvid=Bz2zevKuFYZqnEFwqmqVHcRo5pT0fm0fTtc_6_VQs4g-1726379702153-0.0.1.1-604800000
host:
- api.openai.com
user-agent:
- OpenAI/Python 1.45.0
x-stainless-arch:
- arm64
x-stainless-async:
- 'false'
x-stainless-lang:
- python
x-stainless-os:
- MacOS
x-stainless-package-version:
- 1.45.0
x-stainless-raw-response:
- 'true'
x-stainless-runtime:
- CPython
x-stainless-runtime-version:
- 3.11.7
method: POST
uri: https://api.openai.com/v1/chat/completions
response:
content: "{\n \"id\": \"chatcmpl-A7cmrI98PgyZZlYIkXQsSaPCb2vxB\",\n \"object\":
\"chat.completion\",\n \"created\": 1726380757,\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: 12\",\n \"refusal\": null\n },\n \"logprobs\": null,\n
\ \"finish_reason\": \"stop\"\n }\n ],\n \"usage\": {\n \"prompt_tokens\":
741,\n \"completion_tokens\": 14,\n \"total_tokens\": 755,\n \"completion_tokens_details\":
{\n \"reasoning_tokens\": 0\n }\n },\n \"system_fingerprint\": \"fp_25624ae3a5\"\n}\n"
headers:
CF-Cache-Status:
- DYNAMIC
CF-RAY:
- 8c367755db4e745a-MIA
Connection:
- keep-alive
Content-Encoding:
- gzip
Content-Type:
- application/json
Date:
- Sun, 15 Sep 2024 06:12:37 GMT
Server:
- cloudflare
Transfer-Encoding:
- chunked
X-Content-Type-Options:
- nosniff
access-control-expose-headers:
- X-Request-ID
alt-svc:
- h3=":443"; ma=86400
openai-organization:
- crewai-iuxna1
openai-processing-ms:
- '242'
openai-version:
- '2020-10-01'
strict-transport-security:
- max-age=15552000; includeSubDomains; preload
x-ratelimit-limit-requests:
- '10000'
x-ratelimit-limit-tokens:
- '30000000'
x-ratelimit-remaining-requests:
- '9999'
x-ratelimit-remaining-tokens:
- '29999203'
x-ratelimit-reset-requests:
- 6ms
x-ratelimit-reset-tokens:
- 1ms
x-request-id:
- req_2da1eee07355196b666a542ff688355e
http_version: HTTP/1.1
status_code: 200
- request:
@@ -360,7 +370,7 @@ interactions:
MUST return the actual complete content as the final answer, not a summary.\n\nThis
is the context you''re working with:\n12\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": ["\nResult"]}'
headers:
accept:
- application/json
@@ -369,12 +379,12 @@ interactions:
connection:
- keep-alive
content-length:
- '1790'
- '1785'
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=e.frhlfi1m.8j1hzfGzahuOh4rgR9gvx.2zCHQ2w_Vs-1726380612-1.0.1.1-T58wIEXn0GTV8AZMALaUyULORFkNEBuxpds8RSWAM0Ltrg2U7jLBEKs0nwIneMiBAiiOmyZaoaH2RyLtNcunLQ;
_cfuvid=Bz2zevKuFYZqnEFwqmqVHcRo5pT0fm0fTtc_6_VQs4g-1726379702153-0.0.1.1-604800000
host:
- api.openai.com
user-agent:
@@ -398,20 +408,20 @@ interactions:
method: POST
uri: https://api.openai.com/v1/chat/completions
response:
content: "{\n \"id\": \"chatcmpl-A6vj2lQ3xsFO1qzEGNum8gXgHBqQT\",\n \"object\":
\"chat.completion\",\n \"created\": 1726215228,\n \"model\": \"gpt-4o-2024-05-13\",\n
content: "{\n \"id\": \"chatcmpl-A7cms3RrQnoDAIb7AdiCJg4w4AJZO\",\n \"object\":
\"chat.completion\",\n \"created\": 1726380758,\n \"model\": \"gpt-4o-2024-05-13\",\n
\ \"choices\": [\n {\n \"index\": 0,\n \"message\": {\n \"role\":
\"assistant\",\n \"content\": \"Thought: I need to calculate 2 times
6 using the given tool.\\n\\nAction: multiplier\\nAction Input: {\\\"first_number\\\":
\"assistant\",\n \"content\": \"Thought: I need to multiply the numbers
2 and 6 to get the final answer.\\n\\nAction: multiplier\\nAction Input: {\\\"first_number\\\":
2, \\\"second_number\\\": 6}\",\n \"refusal\": null\n },\n \"logprobs\":
null,\n \"finish_reason\": \"stop\"\n }\n ],\n \"usage\": {\n \"prompt_tokens\":
365,\n \"completion_tokens\": 37,\n \"total_tokens\": 402,\n \"completion_tokens_details\":
365,\n \"completion_tokens\": 40,\n \"total_tokens\": 405,\n \"completion_tokens_details\":
{\n \"reasoning_tokens\": 0\n }\n },\n \"system_fingerprint\": \"fp_25624ae3a5\"\n}\n"
headers:
CF-Cache-Status:
- DYNAMIC
CF-RAY:
- 8c26ae15fcfd2ab9-LAX
- 8c3677592e00745a-MIA
Connection:
- keep-alive
Content-Encoding:
@@ -419,7 +429,7 @@ interactions:
Content-Type:
- application/json
Date:
- Fri, 13 Sep 2024 08:13:48 GMT
- Sun, 15 Sep 2024 06:12:38 GMT
Server:
- cloudflare
Transfer-Encoding:
@@ -433,7 +443,7 @@ interactions:
openai-organization:
- crewai-iuxna1
openai-processing-ms:
- '528'
- '511'
openai-version:
- '2020-10-01'
strict-transport-security:
@@ -451,7 +461,7 @@ interactions:
x-ratelimit-reset-tokens:
- 0s
x-request-id:
- req_539db84e703f219f66d30a92be2b2d02
- req_a17229f8cd4d0c131330568b02e5ce5a
http_version: HTTP/1.1
status_code: 200
- request:
@@ -477,9 +487,10 @@ interactions:
MUST return the actual complete content as the final answer, not a summary.\n\nThis
is the context you''re working with:\n12\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": "Thought: I need to calculate
2 times 6 using the given tool.\n\nAction: multiplier\nAction Input: {\"first_number\":
2, \"second_number\": 6}\nObservation: 12"}], "model": "gpt-4o", "stop": ["\nObservation"]}'
on it!\n\nThought:"}, {"role": "assistant", "content": "Thought: I need to multiply
the numbers 2 and 6 to get the final answer.\n\nAction: multiplier\nAction Input:
{\"first_number\": 2, \"second_number\": 6}\nObservation: 12"}], "model": "gpt-4o",
"stop": ["\nResult"]}'
headers:
accept:
- application/json
@@ -488,12 +499,12 @@ interactions:
connection:
- keep-alive
content-length:
- '1986'
- '1993'
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=e.frhlfi1m.8j1hzfGzahuOh4rgR9gvx.2zCHQ2w_Vs-1726380612-1.0.1.1-T58wIEXn0GTV8AZMALaUyULORFkNEBuxpds8RSWAM0Ltrg2U7jLBEKs0nwIneMiBAiiOmyZaoaH2RyLtNcunLQ;
_cfuvid=Bz2zevKuFYZqnEFwqmqVHcRo5pT0fm0fTtc_6_VQs4g-1726379702153-0.0.1.1-604800000
host:
- api.openai.com
user-agent:
@@ -517,19 +528,19 @@ interactions:
method: POST
uri: https://api.openai.com/v1/chat/completions
response:
content: "{\n \"id\": \"chatcmpl-A6vj3U5lV1MhN5XB2nsqVeKuQpmIT\",\n \"object\":
\"chat.completion\",\n \"created\": 1726215229,\n \"model\": \"gpt-4o-2024-05-13\",\n
content: "{\n \"id\": \"chatcmpl-A7cmsW8lEMKb31TVdZDJQ3QhgSZGi\",\n \"object\":
\"chat.completion\",\n \"created\": 1726380758,\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
\"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\":
410,\n \"completion_tokens\": 14,\n \"total_tokens\": 424,\n \"completion_tokens_details\":
413,\n \"completion_tokens\": 14,\n \"total_tokens\": 427,\n \"completion_tokens_details\":
{\n \"reasoning_tokens\": 0\n }\n },\n \"system_fingerprint\": \"fp_25624ae3a5\"\n}\n"
headers:
CF-Cache-Status:
- DYNAMIC
CF-RAY:
- 8c26ae1f5e662ab9-LAX
- 8c36775e3983745a-MIA
Connection:
- keep-alive
Content-Encoding:
@@ -537,7 +548,7 @@ interactions:
Content-Type:
- application/json
Date:
- Fri, 13 Sep 2024 08:13:49 GMT
- Sun, 15 Sep 2024 06:12:39 GMT
Server:
- cloudflare
Transfer-Encoding:
@@ -551,7 +562,7 @@ interactions:
openai-organization:
- crewai-iuxna1
openai-processing-ms:
- '255'
- '288'
openai-version:
- '2020-10-01'
strict-transport-security:
@@ -563,13 +574,13 @@ interactions:
x-ratelimit-remaining-requests:
- '9999'
x-ratelimit-remaining-tokens:
- '29999535'
- '29999531'
x-ratelimit-reset-requests:
- 6ms
x-ratelimit-reset-tokens:
- 0s
x-request-id:
- req_3254099a8e08fe25c521a6c7c3619957
- req_1859a2f9fd2e6aedec804032a0dd7763
http_version: HTTP/1.1
status_code: 200
version: 1