Files
crewAI/tests/cassettes/test_agent_repeated_tool_usage.yaml
2024-04-01 10:43:05 -03:00

764 lines
42 KiB
YAML

interactions:
- request:
body: '{"messages": [{"role": "user", "content": "You are test role. test backstory\nYour
personal goal is: test goal\n\nYou ONLY have access to the following tools,
and should NEVER make up tools that are not listed here:\n\nget_final_answer:
get_final_answer(anything: str) -> float - Get the final answer but don''t give
it yet, just re-use this\n tool non-stop.\n\nUse the following format:\n\nThought:
you should always think about what to do\nAction: the action to take, only one
name of [get_final_answer], just the name, exactly as it''s written.\nAction
Input: the input to the action, just a simple a python dictionary 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\n\nCurrent Task: The final
answer is 42. But don''t give it until I tell you so, instead keep using the
`get_final_answer` tool.\n\nThis is the expect criteria for your final answer:
The final answer, don''t give it until I tell you so \n you 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: \n"}], "model": "gpt-4", "n": 1, "stop":
["\nObservation"], "stream": true, "temperature": 0.7}'
headers:
accept:
- application/json
accept-encoding:
- gzip, deflate, br
connection:
- keep-alive
content-length:
- '1398'
content-type:
- application/json
host:
- api.openai.com
user-agent:
- OpenAI/Python 1.13.3
x-stainless-arch:
- arm64
x-stainless-async:
- 'false'
x-stainless-lang:
- python
x-stainless-os:
- MacOS
x-stainless-package-version:
- 1.13.3
x-stainless-runtime:
- CPython
x-stainless-runtime-version:
- 3.11.7
method: POST
uri: https://api.openai.com/v1/chat/completions
response:
body:
string: 'data: {"id":"chatcmpl-94XxBgSieaOd18Lz8bcfJB8m6CBBi","object":"chat.completion.chunk","created":1710870857,"model":"gpt-4-0613","system_fingerprint":null,"choices":[{"index":0,"delta":{"role":"assistant","content":""},"logprobs":null,"finish_reason":null}]}
data: {"id":"chatcmpl-94XxBgSieaOd18Lz8bcfJB8m6CBBi","object":"chat.completion.chunk","created":1710870857,"model":"gpt-4-0613","system_fingerprint":null,"choices":[{"index":0,"delta":{"content":"I"},"logprobs":null,"finish_reason":null}]}
data: {"id":"chatcmpl-94XxBgSieaOd18Lz8bcfJB8m6CBBi","object":"chat.completion.chunk","created":1710870857,"model":"gpt-4-0613","system_fingerprint":null,"choices":[{"index":0,"delta":{"content":"
need"},"logprobs":null,"finish_reason":null}]}
data: {"id":"chatcmpl-94XxBgSieaOd18Lz8bcfJB8m6CBBi","object":"chat.completion.chunk","created":1710870857,"model":"gpt-4-0613","system_fingerprint":null,"choices":[{"index":0,"delta":{"content":"
to"},"logprobs":null,"finish_reason":null}]}
data: {"id":"chatcmpl-94XxBgSieaOd18Lz8bcfJB8m6CBBi","object":"chat.completion.chunk","created":1710870857,"model":"gpt-4-0613","system_fingerprint":null,"choices":[{"index":0,"delta":{"content":"
use"},"logprobs":null,"finish_reason":null}]}
data: {"id":"chatcmpl-94XxBgSieaOd18Lz8bcfJB8m6CBBi","object":"chat.completion.chunk","created":1710870857,"model":"gpt-4-0613","system_fingerprint":null,"choices":[{"index":0,"delta":{"content":"
the"},"logprobs":null,"finish_reason":null}]}
data: {"id":"chatcmpl-94XxBgSieaOd18Lz8bcfJB8m6CBBi","object":"chat.completion.chunk","created":1710870857,"model":"gpt-4-0613","system_fingerprint":null,"choices":[{"index":0,"delta":{"content":"
`"},"logprobs":null,"finish_reason":null}]}
data: {"id":"chatcmpl-94XxBgSieaOd18Lz8bcfJB8m6CBBi","object":"chat.completion.chunk","created":1710870857,"model":"gpt-4-0613","system_fingerprint":null,"choices":[{"index":0,"delta":{"content":"get"},"logprobs":null,"finish_reason":null}]}
data: {"id":"chatcmpl-94XxBgSieaOd18Lz8bcfJB8m6CBBi","object":"chat.completion.chunk","created":1710870857,"model":"gpt-4-0613","system_fingerprint":null,"choices":[{"index":0,"delta":{"content":"_final"},"logprobs":null,"finish_reason":null}]}
data: {"id":"chatcmpl-94XxBgSieaOd18Lz8bcfJB8m6CBBi","object":"chat.completion.chunk","created":1710870857,"model":"gpt-4-0613","system_fingerprint":null,"choices":[{"index":0,"delta":{"content":"_answer"},"logprobs":null,"finish_reason":null}]}
data: {"id":"chatcmpl-94XxBgSieaOd18Lz8bcfJB8m6CBBi","object":"chat.completion.chunk","created":1710870857,"model":"gpt-4-0613","system_fingerprint":null,"choices":[{"index":0,"delta":{"content":"`"},"logprobs":null,"finish_reason":null}]}
data: {"id":"chatcmpl-94XxBgSieaOd18Lz8bcfJB8m6CBBi","object":"chat.completion.chunk","created":1710870857,"model":"gpt-4-0613","system_fingerprint":null,"choices":[{"index":0,"delta":{"content":"
tool"},"logprobs":null,"finish_reason":null}]}
data: {"id":"chatcmpl-94XxBgSieaOd18Lz8bcfJB8m6CBBi","object":"chat.completion.chunk","created":1710870857,"model":"gpt-4-0613","system_fingerprint":null,"choices":[{"index":0,"delta":{"content":"
to"},"logprobs":null,"finish_reason":null}]}
data: {"id":"chatcmpl-94XxBgSieaOd18Lz8bcfJB8m6CBBi","object":"chat.completion.chunk","created":1710870857,"model":"gpt-4-0613","system_fingerprint":null,"choices":[{"index":0,"delta":{"content":"
find"},"logprobs":null,"finish_reason":null}]}
data: {"id":"chatcmpl-94XxBgSieaOd18Lz8bcfJB8m6CBBi","object":"chat.completion.chunk","created":1710870857,"model":"gpt-4-0613","system_fingerprint":null,"choices":[{"index":0,"delta":{"content":"
the"},"logprobs":null,"finish_reason":null}]}
data: {"id":"chatcmpl-94XxBgSieaOd18Lz8bcfJB8m6CBBi","object":"chat.completion.chunk","created":1710870857,"model":"gpt-4-0613","system_fingerprint":null,"choices":[{"index":0,"delta":{"content":"
final"},"logprobs":null,"finish_reason":null}]}
data: {"id":"chatcmpl-94XxBgSieaOd18Lz8bcfJB8m6CBBi","object":"chat.completion.chunk","created":1710870857,"model":"gpt-4-0613","system_fingerprint":null,"choices":[{"index":0,"delta":{"content":"
answer"},"logprobs":null,"finish_reason":null}]}
data: {"id":"chatcmpl-94XxBgSieaOd18Lz8bcfJB8m6CBBi","object":"chat.completion.chunk","created":1710870857,"model":"gpt-4-0613","system_fingerprint":null,"choices":[{"index":0,"delta":{"content":"
but"},"logprobs":null,"finish_reason":null}]}
data: {"id":"chatcmpl-94XxBgSieaOd18Lz8bcfJB8m6CBBi","object":"chat.completion.chunk","created":1710870857,"model":"gpt-4-0613","system_fingerprint":null,"choices":[{"index":0,"delta":{"content":"
not"},"logprobs":null,"finish_reason":null}]}
data: {"id":"chatcmpl-94XxBgSieaOd18Lz8bcfJB8m6CBBi","object":"chat.completion.chunk","created":1710870857,"model":"gpt-4-0613","system_fingerprint":null,"choices":[{"index":0,"delta":{"content":"
reveal"},"logprobs":null,"finish_reason":null}]}
data: {"id":"chatcmpl-94XxBgSieaOd18Lz8bcfJB8m6CBBi","object":"chat.completion.chunk","created":1710870857,"model":"gpt-4-0613","system_fingerprint":null,"choices":[{"index":0,"delta":{"content":"
it"},"logprobs":null,"finish_reason":null}]}
data: {"id":"chatcmpl-94XxBgSieaOd18Lz8bcfJB8m6CBBi","object":"chat.completion.chunk","created":1710870857,"model":"gpt-4-0613","system_fingerprint":null,"choices":[{"index":0,"delta":{"content":"
until"},"logprobs":null,"finish_reason":null}]}
data: {"id":"chatcmpl-94XxBgSieaOd18Lz8bcfJB8m6CBBi","object":"chat.completion.chunk","created":1710870857,"model":"gpt-4-0613","system_fingerprint":null,"choices":[{"index":0,"delta":{"content":"
instructed"},"logprobs":null,"finish_reason":null}]}
data: {"id":"chatcmpl-94XxBgSieaOd18Lz8bcfJB8m6CBBi","object":"chat.completion.chunk","created":1710870857,"model":"gpt-4-0613","system_fingerprint":null,"choices":[{"index":0,"delta":{"content":"."},"logprobs":null,"finish_reason":null}]}
data: {"id":"chatcmpl-94XxBgSieaOd18Lz8bcfJB8m6CBBi","object":"chat.completion.chunk","created":1710870857,"model":"gpt-4-0613","system_fingerprint":null,"choices":[{"index":0,"delta":{"content":"
\n\n"},"logprobs":null,"finish_reason":null}]}
data: {"id":"chatcmpl-94XxBgSieaOd18Lz8bcfJB8m6CBBi","object":"chat.completion.chunk","created":1710870857,"model":"gpt-4-0613","system_fingerprint":null,"choices":[{"index":0,"delta":{"content":"Action"},"logprobs":null,"finish_reason":null}]}
data: {"id":"chatcmpl-94XxBgSieaOd18Lz8bcfJB8m6CBBi","object":"chat.completion.chunk","created":1710870857,"model":"gpt-4-0613","system_fingerprint":null,"choices":[{"index":0,"delta":{"content":":"},"logprobs":null,"finish_reason":null}]}
data: {"id":"chatcmpl-94XxBgSieaOd18Lz8bcfJB8m6CBBi","object":"chat.completion.chunk","created":1710870857,"model":"gpt-4-0613","system_fingerprint":null,"choices":[{"index":0,"delta":{"content":"
get"},"logprobs":null,"finish_reason":null}]}
data: {"id":"chatcmpl-94XxBgSieaOd18Lz8bcfJB8m6CBBi","object":"chat.completion.chunk","created":1710870857,"model":"gpt-4-0613","system_fingerprint":null,"choices":[{"index":0,"delta":{"content":"_final"},"logprobs":null,"finish_reason":null}]}
data: {"id":"chatcmpl-94XxBgSieaOd18Lz8bcfJB8m6CBBi","object":"chat.completion.chunk","created":1710870857,"model":"gpt-4-0613","system_fingerprint":null,"choices":[{"index":0,"delta":{"content":"_answer"},"logprobs":null,"finish_reason":null}]}
data: {"id":"chatcmpl-94XxBgSieaOd18Lz8bcfJB8m6CBBi","object":"chat.completion.chunk","created":1710870857,"model":"gpt-4-0613","system_fingerprint":null,"choices":[{"index":0,"delta":{"content":"\n"},"logprobs":null,"finish_reason":null}]}
data: {"id":"chatcmpl-94XxBgSieaOd18Lz8bcfJB8m6CBBi","object":"chat.completion.chunk","created":1710870857,"model":"gpt-4-0613","system_fingerprint":null,"choices":[{"index":0,"delta":{"content":"Action"},"logprobs":null,"finish_reason":null}]}
data: {"id":"chatcmpl-94XxBgSieaOd18Lz8bcfJB8m6CBBi","object":"chat.completion.chunk","created":1710870857,"model":"gpt-4-0613","system_fingerprint":null,"choices":[{"index":0,"delta":{"content":"
Input"},"logprobs":null,"finish_reason":null}]}
data: {"id":"chatcmpl-94XxBgSieaOd18Lz8bcfJB8m6CBBi","object":"chat.completion.chunk","created":1710870857,"model":"gpt-4-0613","system_fingerprint":null,"choices":[{"index":0,"delta":{"content":":"},"logprobs":null,"finish_reason":null}]}
data: {"id":"chatcmpl-94XxBgSieaOd18Lz8bcfJB8m6CBBi","object":"chat.completion.chunk","created":1710870857,"model":"gpt-4-0613","system_fingerprint":null,"choices":[{"index":0,"delta":{"content":"
{\""},"logprobs":null,"finish_reason":null}]}
data: {"id":"chatcmpl-94XxBgSieaOd18Lz8bcfJB8m6CBBi","object":"chat.completion.chunk","created":1710870857,"model":"gpt-4-0613","system_fingerprint":null,"choices":[{"index":0,"delta":{"content":"anything"},"logprobs":null,"finish_reason":null}]}
data: {"id":"chatcmpl-94XxBgSieaOd18Lz8bcfJB8m6CBBi","object":"chat.completion.chunk","created":1710870857,"model":"gpt-4-0613","system_fingerprint":null,"choices":[{"index":0,"delta":{"content":"\":"},"logprobs":null,"finish_reason":null}]}
data: {"id":"chatcmpl-94XxBgSieaOd18Lz8bcfJB8m6CBBi","object":"chat.completion.chunk","created":1710870857,"model":"gpt-4-0613","system_fingerprint":null,"choices":[{"index":0,"delta":{"content":"
\""},"logprobs":null,"finish_reason":null}]}
data: {"id":"chatcmpl-94XxBgSieaOd18Lz8bcfJB8m6CBBi","object":"chat.completion.chunk","created":1710870857,"model":"gpt-4-0613","system_fingerprint":null,"choices":[{"index":0,"delta":{"content":"42"},"logprobs":null,"finish_reason":null}]}
data: {"id":"chatcmpl-94XxBgSieaOd18Lz8bcfJB8m6CBBi","object":"chat.completion.chunk","created":1710870857,"model":"gpt-4-0613","system_fingerprint":null,"choices":[{"index":0,"delta":{"content":"\"}"},"logprobs":null,"finish_reason":null}]}
data: {"id":"chatcmpl-94XxBgSieaOd18Lz8bcfJB8m6CBBi","object":"chat.completion.chunk","created":1710870857,"model":"gpt-4-0613","system_fingerprint":null,"choices":[{"index":0,"delta":{},"logprobs":null,"finish_reason":"stop"}]}
data: [DONE]
'
headers:
CF-Cache-Status:
- DYNAMIC
CF-RAY:
- 866f53ab7eff0162-GRU
Cache-Control:
- no-cache, must-revalidate
Connection:
- keep-alive
Content-Type:
- text/event-stream
Date:
- Tue, 19 Mar 2024 17:54:18 GMT
Server:
- cloudflare
Set-Cookie:
- __cf_bm=9avPyL2v.bkAIKkNysNJ.GguccwZ5._CyKs5GIILF3Q-1710870858-1.0.1.1-S5iyeyi4.UnawtDJgjhAtUGyz8Opn_FqFTqNqXUSbaVm7WuuIcFUFKl8x.XsA7X3BV37KR85ofoJvYfvQcE8xA;
path=/; expires=Tue, 19-Mar-24 18:24:18 GMT; domain=.api.openai.com; HttpOnly;
Secure; SameSite=None
- _cfuvid=4PXDPo_Yc6CDdXcpzOKRv.6HjWWGjvdUdZSVcE3z9Gw-1710870858189-0.0.1.1-604800000;
path=/; domain=.api.openai.com; HttpOnly; Secure; SameSite=None
Transfer-Encoding:
- chunked
access-control-allow-origin:
- '*'
alt-svc:
- h3=":443"; ma=86400
openai-model:
- gpt-4-0613
openai-organization:
- crewai-iuxna1
openai-processing-ms:
- '376'
openai-version:
- '2020-10-01'
strict-transport-security:
- max-age=15724800; includeSubDomains
x-ratelimit-limit-requests:
- '10000'
x-ratelimit-limit-tokens:
- '300000'
x-ratelimit-remaining-requests:
- '9999'
x-ratelimit-remaining-tokens:
- '299675'
x-ratelimit-reset-requests:
- 6ms
x-ratelimit-reset-tokens:
- 65ms
x-request-id:
- req_eff383cea61f2448c830078fe8d3fee7
status:
code: 200
message: OK
- request:
body: '{"messages": [{"role": "user", "content": "You are test role. test backstory\nYour
personal goal is: test goal\n\nYou ONLY have access to the following tools,
and should NEVER make up tools that are not listed here:\n\nget_final_answer:
get_final_answer(anything: str) -> float - Get the final answer but don''t give
it yet, just re-use this\n tool non-stop.\n\nUse the following format:\n\nThought:
you should always think about what to do\nAction: the action to take, only one
name of [get_final_answer], just the name, exactly as it''s written.\nAction
Input: the input to the action, just a simple a python dictionary 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\n\nCurrent Task: The final
answer is 42. But don''t give it until I tell you so, instead keep using the
`get_final_answer` tool.\n\nThis is the expect criteria for your final answer:
The final answer, don''t give it until I tell you so \n you 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: \nI need to use the `get_final_answer` tool
to find the final answer but not reveal it until instructed. \n\nAction: get_final_answer\nAction
Input: {\"anything\": \"42\"}\nObservation: 42\n"}], "model": "gpt-4", "n":
1, "stop": ["\nObservation"], "stream": true, "temperature": 0.7}'
headers:
accept:
- application/json
accept-encoding:
- gzip, deflate, br
connection:
- keep-alive
content-length:
- '1586'
content-type:
- application/json
cookie:
- __cf_bm=9avPyL2v.bkAIKkNysNJ.GguccwZ5._CyKs5GIILF3Q-1710870858-1.0.1.1-S5iyeyi4.UnawtDJgjhAtUGyz8Opn_FqFTqNqXUSbaVm7WuuIcFUFKl8x.XsA7X3BV37KR85ofoJvYfvQcE8xA;
_cfuvid=4PXDPo_Yc6CDdXcpzOKRv.6HjWWGjvdUdZSVcE3z9Gw-1710870858189-0.0.1.1-604800000
host:
- api.openai.com
user-agent:
- OpenAI/Python 1.13.3
x-stainless-arch:
- arm64
x-stainless-async:
- 'false'
x-stainless-lang:
- python
x-stainless-os:
- MacOS
x-stainless-package-version:
- 1.13.3
x-stainless-runtime:
- CPython
x-stainless-runtime-version:
- 3.11.7
method: POST
uri: https://api.openai.com/v1/chat/completions
response:
body:
string: 'data: {"id":"chatcmpl-94XxDqPWt495tJVuKWqgXziAFShkU","object":"chat.completion.chunk","created":1710870859,"model":"gpt-4-0613","system_fingerprint":null,"choices":[{"index":0,"delta":{"role":"assistant","content":""},"logprobs":null,"finish_reason":null}]}
data: {"id":"chatcmpl-94XxDqPWt495tJVuKWqgXziAFShkU","object":"chat.completion.chunk","created":1710870859,"model":"gpt-4-0613","system_fingerprint":null,"choices":[{"index":0,"delta":{"content":"Thought"},"logprobs":null,"finish_reason":null}]}
data: {"id":"chatcmpl-94XxDqPWt495tJVuKWqgXziAFShkU","object":"chat.completion.chunk","created":1710870859,"model":"gpt-4-0613","system_fingerprint":null,"choices":[{"index":0,"delta":{"content":":"},"logprobs":null,"finish_reason":null}]}
data: {"id":"chatcmpl-94XxDqPWt495tJVuKWqgXziAFShkU","object":"chat.completion.chunk","created":1710870859,"model":"gpt-4-0613","system_fingerprint":null,"choices":[{"index":0,"delta":{"content":"
\n"},"logprobs":null,"finish_reason":null}]}
data: {"id":"chatcmpl-94XxDqPWt495tJVuKWqgXziAFShkU","object":"chat.completion.chunk","created":1710870859,"model":"gpt-4-0613","system_fingerprint":null,"choices":[{"index":0,"delta":{"content":"The"},"logprobs":null,"finish_reason":null}]}
data: {"id":"chatcmpl-94XxDqPWt495tJVuKWqgXziAFShkU","object":"chat.completion.chunk","created":1710870859,"model":"gpt-4-0613","system_fingerprint":null,"choices":[{"index":0,"delta":{"content":"
observed"},"logprobs":null,"finish_reason":null}]}
data: {"id":"chatcmpl-94XxDqPWt495tJVuKWqgXziAFShkU","object":"chat.completion.chunk","created":1710870859,"model":"gpt-4-0613","system_fingerprint":null,"choices":[{"index":0,"delta":{"content":"
result"},"logprobs":null,"finish_reason":null}]}
data: {"id":"chatcmpl-94XxDqPWt495tJVuKWqgXziAFShkU","object":"chat.completion.chunk","created":1710870859,"model":"gpt-4-0613","system_fingerprint":null,"choices":[{"index":0,"delta":{"content":"
is"},"logprobs":null,"finish_reason":null}]}
data: {"id":"chatcmpl-94XxDqPWt495tJVuKWqgXziAFShkU","object":"chat.completion.chunk","created":1710870859,"model":"gpt-4-0613","system_fingerprint":null,"choices":[{"index":0,"delta":{"content":"
"},"logprobs":null,"finish_reason":null}]}
data: {"id":"chatcmpl-94XxDqPWt495tJVuKWqgXziAFShkU","object":"chat.completion.chunk","created":1710870859,"model":"gpt-4-0613","system_fingerprint":null,"choices":[{"index":0,"delta":{"content":"42"},"logprobs":null,"finish_reason":null}]}
data: {"id":"chatcmpl-94XxDqPWt495tJVuKWqgXziAFShkU","object":"chat.completion.chunk","created":1710870859,"model":"gpt-4-0613","system_fingerprint":null,"choices":[{"index":0,"delta":{"content":"
which"},"logprobs":null,"finish_reason":null}]}
data: {"id":"chatcmpl-94XxDqPWt495tJVuKWqgXziAFShkU","object":"chat.completion.chunk","created":1710870859,"model":"gpt-4-0613","system_fingerprint":null,"choices":[{"index":0,"delta":{"content":"
matches"},"logprobs":null,"finish_reason":null}]}
data: {"id":"chatcmpl-94XxDqPWt495tJVuKWqgXziAFShkU","object":"chat.completion.chunk","created":1710870859,"model":"gpt-4-0613","system_fingerprint":null,"choices":[{"index":0,"delta":{"content":"
the"},"logprobs":null,"finish_reason":null}]}
data: {"id":"chatcmpl-94XxDqPWt495tJVuKWqgXziAFShkU","object":"chat.completion.chunk","created":1710870859,"model":"gpt-4-0613","system_fingerprint":null,"choices":[{"index":0,"delta":{"content":"
expected"},"logprobs":null,"finish_reason":null}]}
data: {"id":"chatcmpl-94XxDqPWt495tJVuKWqgXziAFShkU","object":"chat.completion.chunk","created":1710870859,"model":"gpt-4-0613","system_fingerprint":null,"choices":[{"index":0,"delta":{"content":"
final"},"logprobs":null,"finish_reason":null}]}
data: {"id":"chatcmpl-94XxDqPWt495tJVuKWqgXziAFShkU","object":"chat.completion.chunk","created":1710870859,"model":"gpt-4-0613","system_fingerprint":null,"choices":[{"index":0,"delta":{"content":"
answer"},"logprobs":null,"finish_reason":null}]}
data: {"id":"chatcmpl-94XxDqPWt495tJVuKWqgXziAFShkU","object":"chat.completion.chunk","created":1710870859,"model":"gpt-4-0613","system_fingerprint":null,"choices":[{"index":0,"delta":{"content":"."},"logprobs":null,"finish_reason":null}]}
data: {"id":"chatcmpl-94XxDqPWt495tJVuKWqgXziAFShkU","object":"chat.completion.chunk","created":1710870859,"model":"gpt-4-0613","system_fingerprint":null,"choices":[{"index":0,"delta":{"content":"
However"},"logprobs":null,"finish_reason":null}]}
data: {"id":"chatcmpl-94XxDqPWt495tJVuKWqgXziAFShkU","object":"chat.completion.chunk","created":1710870859,"model":"gpt-4-0613","system_fingerprint":null,"choices":[{"index":0,"delta":{"content":","},"logprobs":null,"finish_reason":null}]}
data: {"id":"chatcmpl-94XxDqPWt495tJVuKWqgXziAFShkU","object":"chat.completion.chunk","created":1710870859,"model":"gpt-4-0613","system_fingerprint":null,"choices":[{"index":0,"delta":{"content":"
I"},"logprobs":null,"finish_reason":null}]}
data: {"id":"chatcmpl-94XxDqPWt495tJVuKWqgXziAFShkU","object":"chat.completion.chunk","created":1710870859,"model":"gpt-4-0613","system_fingerprint":null,"choices":[{"index":0,"delta":{"content":"''m"},"logprobs":null,"finish_reason":null}]}
data: {"id":"chatcmpl-94XxDqPWt495tJVuKWqgXziAFShkU","object":"chat.completion.chunk","created":1710870859,"model":"gpt-4-0613","system_fingerprint":null,"choices":[{"index":0,"delta":{"content":"
instructed"},"logprobs":null,"finish_reason":null}]}
data: {"id":"chatcmpl-94XxDqPWt495tJVuKWqgXziAFShkU","object":"chat.completion.chunk","created":1710870859,"model":"gpt-4-0613","system_fingerprint":null,"choices":[{"index":0,"delta":{"content":"
not"},"logprobs":null,"finish_reason":null}]}
data: {"id":"chatcmpl-94XxDqPWt495tJVuKWqgXziAFShkU","object":"chat.completion.chunk","created":1710870859,"model":"gpt-4-0613","system_fingerprint":null,"choices":[{"index":0,"delta":{"content":"
to"},"logprobs":null,"finish_reason":null}]}
data: {"id":"chatcmpl-94XxDqPWt495tJVuKWqgXziAFShkU","object":"chat.completion.chunk","created":1710870859,"model":"gpt-4-0613","system_fingerprint":null,"choices":[{"index":0,"delta":{"content":"
reveal"},"logprobs":null,"finish_reason":null}]}
data: {"id":"chatcmpl-94XxDqPWt495tJVuKWqgXziAFShkU","object":"chat.completion.chunk","created":1710870859,"model":"gpt-4-0613","system_fingerprint":null,"choices":[{"index":0,"delta":{"content":"
the"},"logprobs":null,"finish_reason":null}]}
data: {"id":"chatcmpl-94XxDqPWt495tJVuKWqgXziAFShkU","object":"chat.completion.chunk","created":1710870859,"model":"gpt-4-0613","system_fingerprint":null,"choices":[{"index":0,"delta":{"content":"
final"},"logprobs":null,"finish_reason":null}]}
data: {"id":"chatcmpl-94XxDqPWt495tJVuKWqgXziAFShkU","object":"chat.completion.chunk","created":1710870859,"model":"gpt-4-0613","system_fingerprint":null,"choices":[{"index":0,"delta":{"content":"
answer"},"logprobs":null,"finish_reason":null}]}
data: {"id":"chatcmpl-94XxDqPWt495tJVuKWqgXziAFShkU","object":"chat.completion.chunk","created":1710870859,"model":"gpt-4-0613","system_fingerprint":null,"choices":[{"index":0,"delta":{"content":"
until"},"logprobs":null,"finish_reason":null}]}
data: {"id":"chatcmpl-94XxDqPWt495tJVuKWqgXziAFShkU","object":"chat.completion.chunk","created":1710870859,"model":"gpt-4-0613","system_fingerprint":null,"choices":[{"index":0,"delta":{"content":"
I"},"logprobs":null,"finish_reason":null}]}
data: {"id":"chatcmpl-94XxDqPWt495tJVuKWqgXziAFShkU","object":"chat.completion.chunk","created":1710870859,"model":"gpt-4-0613","system_fingerprint":null,"choices":[{"index":0,"delta":{"content":"''m"},"logprobs":null,"finish_reason":null}]}
data: {"id":"chatcmpl-94XxDqPWt495tJVuKWqgXziAFShkU","object":"chat.completion.chunk","created":1710870859,"model":"gpt-4-0613","system_fingerprint":null,"choices":[{"index":0,"delta":{"content":"
told"},"logprobs":null,"finish_reason":null}]}
data: {"id":"chatcmpl-94XxDqPWt495tJVuKWqgXziAFShkU","object":"chat.completion.chunk","created":1710870859,"model":"gpt-4-0613","system_fingerprint":null,"choices":[{"index":0,"delta":{"content":"
to"},"logprobs":null,"finish_reason":null}]}
data: {"id":"chatcmpl-94XxDqPWt495tJVuKWqgXziAFShkU","object":"chat.completion.chunk","created":1710870859,"model":"gpt-4-0613","system_fingerprint":null,"choices":[{"index":0,"delta":{"content":"
do"},"logprobs":null,"finish_reason":null}]}
data: {"id":"chatcmpl-94XxDqPWt495tJVuKWqgXziAFShkU","object":"chat.completion.chunk","created":1710870859,"model":"gpt-4-0613","system_fingerprint":null,"choices":[{"index":0,"delta":{"content":"
so"},"logprobs":null,"finish_reason":null}]}
data: {"id":"chatcmpl-94XxDqPWt495tJVuKWqgXziAFShkU","object":"chat.completion.chunk","created":1710870859,"model":"gpt-4-0613","system_fingerprint":null,"choices":[{"index":0,"delta":{"content":"."},"logprobs":null,"finish_reason":null}]}
data: {"id":"chatcmpl-94XxDqPWt495tJVuKWqgXziAFShkU","object":"chat.completion.chunk","created":1710870859,"model":"gpt-4-0613","system_fingerprint":null,"choices":[{"index":0,"delta":{"content":"
I"},"logprobs":null,"finish_reason":null}]}
data: {"id":"chatcmpl-94XxDqPWt495tJVuKWqgXziAFShkU","object":"chat.completion.chunk","created":1710870859,"model":"gpt-4-0613","system_fingerprint":null,"choices":[{"index":0,"delta":{"content":"''ll"},"logprobs":null,"finish_reason":null}]}
data: {"id":"chatcmpl-94XxDqPWt495tJVuKWqgXziAFShkU","object":"chat.completion.chunk","created":1710870859,"model":"gpt-4-0613","system_fingerprint":null,"choices":[{"index":0,"delta":{"content":"
continue"},"logprobs":null,"finish_reason":null}]}
data: {"id":"chatcmpl-94XxDqPWt495tJVuKWqgXziAFShkU","object":"chat.completion.chunk","created":1710870859,"model":"gpt-4-0613","system_fingerprint":null,"choices":[{"index":0,"delta":{"content":"
using"},"logprobs":null,"finish_reason":null}]}
data: {"id":"chatcmpl-94XxDqPWt495tJVuKWqgXziAFShkU","object":"chat.completion.chunk","created":1710870859,"model":"gpt-4-0613","system_fingerprint":null,"choices":[{"index":0,"delta":{"content":"
`"},"logprobs":null,"finish_reason":null}]}
data: {"id":"chatcmpl-94XxDqPWt495tJVuKWqgXziAFShkU","object":"chat.completion.chunk","created":1710870859,"model":"gpt-4-0613","system_fingerprint":null,"choices":[{"index":0,"delta":{"content":"get"},"logprobs":null,"finish_reason":null}]}
data: {"id":"chatcmpl-94XxDqPWt495tJVuKWqgXziAFShkU","object":"chat.completion.chunk","created":1710870859,"model":"gpt-4-0613","system_fingerprint":null,"choices":[{"index":0,"delta":{"content":"_final"},"logprobs":null,"finish_reason":null}]}
data: {"id":"chatcmpl-94XxDqPWt495tJVuKWqgXziAFShkU","object":"chat.completion.chunk","created":1710870859,"model":"gpt-4-0613","system_fingerprint":null,"choices":[{"index":0,"delta":{"content":"_answer"},"logprobs":null,"finish_reason":null}]}
data: {"id":"chatcmpl-94XxDqPWt495tJVuKWqgXziAFShkU","object":"chat.completion.chunk","created":1710870859,"model":"gpt-4-0613","system_fingerprint":null,"choices":[{"index":0,"delta":{"content":"`"},"logprobs":null,"finish_reason":null}]}
data: {"id":"chatcmpl-94XxDqPWt495tJVuKWqgXziAFShkU","object":"chat.completion.chunk","created":1710870859,"model":"gpt-4-0613","system_fingerprint":null,"choices":[{"index":0,"delta":{"content":"
tool"},"logprobs":null,"finish_reason":null}]}
data: {"id":"chatcmpl-94XxDqPWt495tJVuKWqgXziAFShkU","object":"chat.completion.chunk","created":1710870859,"model":"gpt-4-0613","system_fingerprint":null,"choices":[{"index":0,"delta":{"content":".\n\n"},"logprobs":null,"finish_reason":null}]}
data: {"id":"chatcmpl-94XxDqPWt495tJVuKWqgXziAFShkU","object":"chat.completion.chunk","created":1710870859,"model":"gpt-4-0613","system_fingerprint":null,"choices":[{"index":0,"delta":{"content":"Action"},"logprobs":null,"finish_reason":null}]}
data: {"id":"chatcmpl-94XxDqPWt495tJVuKWqgXziAFShkU","object":"chat.completion.chunk","created":1710870859,"model":"gpt-4-0613","system_fingerprint":null,"choices":[{"index":0,"delta":{"content":":"},"logprobs":null,"finish_reason":null}]}
data: {"id":"chatcmpl-94XxDqPWt495tJVuKWqgXziAFShkU","object":"chat.completion.chunk","created":1710870859,"model":"gpt-4-0613","system_fingerprint":null,"choices":[{"index":0,"delta":{"content":"
get"},"logprobs":null,"finish_reason":null}]}
data: {"id":"chatcmpl-94XxDqPWt495tJVuKWqgXziAFShkU","object":"chat.completion.chunk","created":1710870859,"model":"gpt-4-0613","system_fingerprint":null,"choices":[{"index":0,"delta":{"content":"_final"},"logprobs":null,"finish_reason":null}]}
data: {"id":"chatcmpl-94XxDqPWt495tJVuKWqgXziAFShkU","object":"chat.completion.chunk","created":1710870859,"model":"gpt-4-0613","system_fingerprint":null,"choices":[{"index":0,"delta":{"content":"_answer"},"logprobs":null,"finish_reason":null}]}
data: {"id":"chatcmpl-94XxDqPWt495tJVuKWqgXziAFShkU","object":"chat.completion.chunk","created":1710870859,"model":"gpt-4-0613","system_fingerprint":null,"choices":[{"index":0,"delta":{"content":"\n"},"logprobs":null,"finish_reason":null}]}
data: {"id":"chatcmpl-94XxDqPWt495tJVuKWqgXziAFShkU","object":"chat.completion.chunk","created":1710870859,"model":"gpt-4-0613","system_fingerprint":null,"choices":[{"index":0,"delta":{"content":"Action"},"logprobs":null,"finish_reason":null}]}
data: {"id":"chatcmpl-94XxDqPWt495tJVuKWqgXziAFShkU","object":"chat.completion.chunk","created":1710870859,"model":"gpt-4-0613","system_fingerprint":null,"choices":[{"index":0,"delta":{"content":"
Input"},"logprobs":null,"finish_reason":null}]}
data: {"id":"chatcmpl-94XxDqPWt495tJVuKWqgXziAFShkU","object":"chat.completion.chunk","created":1710870859,"model":"gpt-4-0613","system_fingerprint":null,"choices":[{"index":0,"delta":{"content":":"},"logprobs":null,"finish_reason":null}]}
data: {"id":"chatcmpl-94XxDqPWt495tJVuKWqgXziAFShkU","object":"chat.completion.chunk","created":1710870859,"model":"gpt-4-0613","system_fingerprint":null,"choices":[{"index":0,"delta":{"content":"
{\""},"logprobs":null,"finish_reason":null}]}
data: {"id":"chatcmpl-94XxDqPWt495tJVuKWqgXziAFShkU","object":"chat.completion.chunk","created":1710870859,"model":"gpt-4-0613","system_fingerprint":null,"choices":[{"index":0,"delta":{"content":"anything"},"logprobs":null,"finish_reason":null}]}
data: {"id":"chatcmpl-94XxDqPWt495tJVuKWqgXziAFShkU","object":"chat.completion.chunk","created":1710870859,"model":"gpt-4-0613","system_fingerprint":null,"choices":[{"index":0,"delta":{"content":"\":"},"logprobs":null,"finish_reason":null}]}
data: {"id":"chatcmpl-94XxDqPWt495tJVuKWqgXziAFShkU","object":"chat.completion.chunk","created":1710870859,"model":"gpt-4-0613","system_fingerprint":null,"choices":[{"index":0,"delta":{"content":"
\""},"logprobs":null,"finish_reason":null}]}
data: {"id":"chatcmpl-94XxDqPWt495tJVuKWqgXziAFShkU","object":"chat.completion.chunk","created":1710870859,"model":"gpt-4-0613","system_fingerprint":null,"choices":[{"index":0,"delta":{"content":"42"},"logprobs":null,"finish_reason":null}]}
data: {"id":"chatcmpl-94XxDqPWt495tJVuKWqgXziAFShkU","object":"chat.completion.chunk","created":1710870859,"model":"gpt-4-0613","system_fingerprint":null,"choices":[{"index":0,"delta":{"content":"\"}"},"logprobs":null,"finish_reason":null}]}
data: {"id":"chatcmpl-94XxDqPWt495tJVuKWqgXziAFShkU","object":"chat.completion.chunk","created":1710870859,"model":"gpt-4-0613","system_fingerprint":null,"choices":[{"index":0,"delta":{},"logprobs":null,"finish_reason":"stop"}]}
data: [DONE]
'
headers:
CF-Cache-Status:
- DYNAMIC
CF-RAY:
- 866f53b879c10162-GRU
Cache-Control:
- no-cache, must-revalidate
Connection:
- keep-alive
Content-Type:
- text/event-stream
Date:
- Tue, 19 Mar 2024 17:54:20 GMT
Server:
- cloudflare
Transfer-Encoding:
- chunked
access-control-allow-origin:
- '*'
alt-svc:
- h3=":443"; ma=86400
openai-model:
- gpt-4-0613
openai-organization:
- crewai-iuxna1
openai-processing-ms:
- '379'
openai-version:
- '2020-10-01'
strict-transport-security:
- max-age=15724800; includeSubDomains
x-ratelimit-limit-requests:
- '10000'
x-ratelimit-limit-tokens:
- '300000'
x-ratelimit-remaining-requests:
- '9999'
x-ratelimit-remaining-tokens:
- '299630'
x-ratelimit-reset-requests:
- 6ms
x-ratelimit-reset-tokens:
- 74ms
x-request-id:
- req_b5aa37d4c784e73a4443763f057db23c
status:
code: 200
message: OK
- request:
body: '{"messages": [{"role": "user", "content": "You are test role. test backstory\nYour
personal goal is: test goal\n\nYou ONLY have access to the following tools,
and should NEVER make up tools that are not listed here:\n\nget_final_answer:
get_final_answer(anything: str) -> float - Get the final answer but don''t give
it yet, just re-use this\n tool non-stop.\n\nUse the following format:\n\nThought:
you should always think about what to do\nAction: the action to take, only one
name of [get_final_answer], just the name, exactly as it''s written.\nAction
Input: the input to the action, just a simple a python dictionary 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\n\nCurrent Task: The final
answer is 42. But don''t give it until I tell you so, instead keep using the
`get_final_answer` tool.\n\nThis is the expect criteria for your final answer:
The final answer, don''t give it until I tell you so \n you 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: \nI need to use the `get_final_answer` tool
to find the final answer but not reveal it until instructed. \n\nAction: get_final_answer\nAction
Input: {\"anything\": \"42\"}\nObservation: 42\nThought: \nThe observed result
is 42 which matches the expected final answer. However, I''m instructed not
to reveal the final answer until I''m told to do so. I''ll continue using `get_final_answer`
tool.\n\nAction: get_final_answer\nAction Input: {\"anything\": \"42\"}\nObservation:
I tried reusing the same input, I must stop using this action input. I''ll try
something else instead.\n\n\nTool won''t be use because it''s time to give your
final answer. Don''t use tools and just your absolute BEST Final answer.\nObservation:
Tool won''t be use because it''s time to give your final answer. Don''t use
tools and just your absolute BEST Final answer.\n"}], "model": "gpt-4", "n":
1, "stop": ["\nObservation"], "stream": true, "temperature": 0.7}'
headers:
accept:
- application/json
accept-encoding:
- gzip, deflate, br
connection:
- keep-alive
content-length:
- '2233'
content-type:
- application/json
cookie:
- __cf_bm=9avPyL2v.bkAIKkNysNJ.GguccwZ5._CyKs5GIILF3Q-1710870858-1.0.1.1-S5iyeyi4.UnawtDJgjhAtUGyz8Opn_FqFTqNqXUSbaVm7WuuIcFUFKl8x.XsA7X3BV37KR85ofoJvYfvQcE8xA;
_cfuvid=4PXDPo_Yc6CDdXcpzOKRv.6HjWWGjvdUdZSVcE3z9Gw-1710870858189-0.0.1.1-604800000
host:
- api.openai.com
user-agent:
- OpenAI/Python 1.13.3
x-stainless-arch:
- arm64
x-stainless-async:
- 'false'
x-stainless-lang:
- python
x-stainless-os:
- MacOS
x-stainless-package-version:
- 1.13.3
x-stainless-runtime:
- CPython
x-stainless-runtime-version:
- 3.11.7
method: POST
uri: https://api.openai.com/v1/chat/completions
response:
body:
string: 'data: {"id":"chatcmpl-94XxGB7OkFcxuIRjCaj3CkqbRNboW","object":"chat.completion.chunk","created":1710870862,"model":"gpt-4-0613","system_fingerprint":null,"choices":[{"index":0,"delta":{"role":"assistant","content":""},"logprobs":null,"finish_reason":null}]}
data: {"id":"chatcmpl-94XxGB7OkFcxuIRjCaj3CkqbRNboW","object":"chat.completion.chunk","created":1710870862,"model":"gpt-4-0613","system_fingerprint":null,"choices":[{"index":0,"delta":{"content":"Thought"},"logprobs":null,"finish_reason":null}]}
data: {"id":"chatcmpl-94XxGB7OkFcxuIRjCaj3CkqbRNboW","object":"chat.completion.chunk","created":1710870862,"model":"gpt-4-0613","system_fingerprint":null,"choices":[{"index":0,"delta":{"content":":"},"logprobs":null,"finish_reason":null}]}
data: {"id":"chatcmpl-94XxGB7OkFcxuIRjCaj3CkqbRNboW","object":"chat.completion.chunk","created":1710870862,"model":"gpt-4-0613","system_fingerprint":null,"choices":[{"index":0,"delta":{"content":"
I"},"logprobs":null,"finish_reason":null}]}
data: {"id":"chatcmpl-94XxGB7OkFcxuIRjCaj3CkqbRNboW","object":"chat.completion.chunk","created":1710870862,"model":"gpt-4-0613","system_fingerprint":null,"choices":[{"index":0,"delta":{"content":"
now"},"logprobs":null,"finish_reason":null}]}
data: {"id":"chatcmpl-94XxGB7OkFcxuIRjCaj3CkqbRNboW","object":"chat.completion.chunk","created":1710870862,"model":"gpt-4-0613","system_fingerprint":null,"choices":[{"index":0,"delta":{"content":"
know"},"logprobs":null,"finish_reason":null}]}
data: {"id":"chatcmpl-94XxGB7OkFcxuIRjCaj3CkqbRNboW","object":"chat.completion.chunk","created":1710870862,"model":"gpt-4-0613","system_fingerprint":null,"choices":[{"index":0,"delta":{"content":"
the"},"logprobs":null,"finish_reason":null}]}
data: {"id":"chatcmpl-94XxGB7OkFcxuIRjCaj3CkqbRNboW","object":"chat.completion.chunk","created":1710870862,"model":"gpt-4-0613","system_fingerprint":null,"choices":[{"index":0,"delta":{"content":"
final"},"logprobs":null,"finish_reason":null}]}
data: {"id":"chatcmpl-94XxGB7OkFcxuIRjCaj3CkqbRNboW","object":"chat.completion.chunk","created":1710870862,"model":"gpt-4-0613","system_fingerprint":null,"choices":[{"index":0,"delta":{"content":"
answer"},"logprobs":null,"finish_reason":null}]}
data: {"id":"chatcmpl-94XxGB7OkFcxuIRjCaj3CkqbRNboW","object":"chat.completion.chunk","created":1710870862,"model":"gpt-4-0613","system_fingerprint":null,"choices":[{"index":0,"delta":{"content":"\n"},"logprobs":null,"finish_reason":null}]}
data: {"id":"chatcmpl-94XxGB7OkFcxuIRjCaj3CkqbRNboW","object":"chat.completion.chunk","created":1710870862,"model":"gpt-4-0613","system_fingerprint":null,"choices":[{"index":0,"delta":{"content":"Final"},"logprobs":null,"finish_reason":null}]}
data: {"id":"chatcmpl-94XxGB7OkFcxuIRjCaj3CkqbRNboW","object":"chat.completion.chunk","created":1710870862,"model":"gpt-4-0613","system_fingerprint":null,"choices":[{"index":0,"delta":{"content":"
Answer"},"logprobs":null,"finish_reason":null}]}
data: {"id":"chatcmpl-94XxGB7OkFcxuIRjCaj3CkqbRNboW","object":"chat.completion.chunk","created":1710870862,"model":"gpt-4-0613","system_fingerprint":null,"choices":[{"index":0,"delta":{"content":":"},"logprobs":null,"finish_reason":null}]}
data: {"id":"chatcmpl-94XxGB7OkFcxuIRjCaj3CkqbRNboW","object":"chat.completion.chunk","created":1710870862,"model":"gpt-4-0613","system_fingerprint":null,"choices":[{"index":0,"delta":{"content":"
"},"logprobs":null,"finish_reason":null}]}
data: {"id":"chatcmpl-94XxGB7OkFcxuIRjCaj3CkqbRNboW","object":"chat.completion.chunk","created":1710870862,"model":"gpt-4-0613","system_fingerprint":null,"choices":[{"index":0,"delta":{"content":"42"},"logprobs":null,"finish_reason":null}]}
data: {"id":"chatcmpl-94XxGB7OkFcxuIRjCaj3CkqbRNboW","object":"chat.completion.chunk","created":1710870862,"model":"gpt-4-0613","system_fingerprint":null,"choices":[{"index":0,"delta":{},"logprobs":null,"finish_reason":"stop"}]}
data: [DONE]
'
headers:
CF-Cache-Status:
- DYNAMIC
CF-RAY:
- 866f53c83f990162-GRU
Cache-Control:
- no-cache, must-revalidate
Connection:
- keep-alive
Content-Type:
- text/event-stream
Date:
- Tue, 19 Mar 2024 17:54:22 GMT
Server:
- cloudflare
Transfer-Encoding:
- chunked
access-control-allow-origin:
- '*'
alt-svc:
- h3=":443"; ma=86400
openai-model:
- gpt-4-0613
openai-organization:
- crewai-iuxna1
openai-processing-ms:
- '443'
openai-version:
- '2020-10-01'
strict-transport-security:
- max-age=15724800; includeSubDomains
x-ratelimit-limit-requests:
- '10000'
x-ratelimit-limit-tokens:
- '300000'
x-ratelimit-remaining-requests:
- '9999'
x-ratelimit-remaining-tokens:
- '299471'
x-ratelimit-reset-requests:
- 6ms
x-ratelimit-reset-tokens:
- 105ms
x-request-id:
- req_771b9a6385ece0e82d952d2a91de8d05
status:
code: 200
message: OK
version: 1