Files
crewAI/tests/cassettes/test_agent_function_calling_llm.yaml
2024-09-15 19:37:58 -03:00

427 lines
18 KiB
YAML

interactions:
- request:
body: '{"messages": [{"role": "system", "content": "You are test role. test backstory\nYour
personal goal is: test goal\nYou ONLY have access to the following tools, and
should NEVER make up tools that are not listed here:\n\nTool Name: learn_about_AI(*args:
Any, **kwargs: Any) -> Any\nTool Description: learn_about_AI() - Useful for
when you need to learn about AI to write an paragraph about it. \nTool Arguments:
{}\n\nUse the following format:\n\nThought: you should always think about what
to do\nAction: the action to take, only one name of [learn_about_AI], 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: Write and then review an small paragraph on AI until it''s AMAZING\n\nThis
is the expect criteria for your final answer: The final paragraph.\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:
- '1377'
content-type:
- application/json
cookie:
- __cf_bm=xCQEG8vgEvQfut0bkj2xgre9z9ePZhdKdNxBphhvH6s-1726437753-1.0.1.1-5qo0zwDCcKDtqvIzDbp2sLEPCey8v5DAsf0Mg6f2RmooOW9FXTw2P66VCTTF.vCwTpWBIFk0vzKmBAPOt6urIg;
_cfuvid=TiTyEciy7HrUlIDEsELZqkUyM4Fyn8OldZd4JefFMOA-1726437753108-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-A7rgZEMI5yFepHogwjwlc6KVM7xW6\",\n \"object\":
\"chat.completion\",\n \"created\": 1726438027,\n \"model\": \"gpt-4o-2024-05-13\",\n
\ \"choices\": [\n {\n \"index\": 0,\n \"message\": {\n \"role\":
\"assistant\",\n \"content\": \"Thought: I should gather information
on AI to write an informative and amazing paragraph about it.\\n\\nAction: learn_about_AI\\nAction
Input: {}\",\n \"refusal\": null\n },\n \"logprobs\": null,\n
\ \"finish_reason\": \"stop\"\n }\n ],\n \"usage\": {\n \"prompt_tokens\":
277,\n \"completion_tokens\": 28,\n \"total_tokens\": 305,\n \"completion_tokens_details\":
{\n \"reasoning_tokens\": 0\n }\n },\n \"system_fingerprint\": \"fp_25624ae3a5\"\n}\n"
headers:
CF-Cache-Status:
- DYNAMIC
CF-RAY:
- 8c3bed85bac2a4ca-MIA
Connection:
- keep-alive
Content-Encoding:
- gzip
Content-Type:
- application/json
Date:
- Sun, 15 Sep 2024 22:07:07 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:
- '326'
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:
- '29999677'
x-ratelimit-reset-requests:
- 6ms
x-ratelimit-reset-tokens:
- 0s
x-request-id:
- req_932bbc6b2a64e0ae209eeeb563390460
http_version: HTTP/1.1
status_code: 200
- request:
body: '{"messages": [{"role": "system", "content": "You are test role. test backstory\nYour
personal goal is: test goal\nYou ONLY have access to the following tools, and
should NEVER make up tools that are not listed here:\n\nTool Name: learn_about_AI(*args:
Any, **kwargs: Any) -> Any\nTool Description: learn_about_AI() - Useful for
when you need to learn about AI to write an paragraph about it. \nTool Arguments:
{}\n\nUse the following format:\n\nThought: you should always think about what
to do\nAction: the action to take, only one name of [learn_about_AI], 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: Write and then review an small paragraph on AI until it''s AMAZING\n\nThis
is the expect criteria for your final answer: The final paragraph.\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 should gather information on AI to write an informative and amazing
paragraph about it.\n\nAction: learn_about_AI\nAction Input: {}\nObservation:
You tried to use the tool <Mock name=''from_litellm().chat.completions.create().tool_name''
id=''11004817744''>, but it doesn''t exist. You must use one of the following
tools, use one at time: learn_about_ai."}], "model": "gpt-4o", "stop": ["\nObservation:"]}'
headers:
accept:
- application/json
accept-encoding:
- gzip, deflate
connection:
- keep-alive
content-length:
- '1776'
content-type:
- application/json
cookie:
- __cf_bm=xCQEG8vgEvQfut0bkj2xgre9z9ePZhdKdNxBphhvH6s-1726437753-1.0.1.1-5qo0zwDCcKDtqvIzDbp2sLEPCey8v5DAsf0Mg6f2RmooOW9FXTw2P66VCTTF.vCwTpWBIFk0vzKmBAPOt6urIg;
_cfuvid=TiTyEciy7HrUlIDEsELZqkUyM4Fyn8OldZd4JefFMOA-1726437753108-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-A7rgZoEMr1Lwa4sk2KRDNBexplmXQ\",\n \"object\":
\"chat.completion\",\n \"created\": 1726438027,\n \"model\": \"gpt-4o-2024-05-13\",\n
\ \"choices\": [\n {\n \"index\": 0,\n \"message\": {\n \"role\":
\"assistant\",\n \"content\": \"Thought: It appears I used an incorrect
tool name earlier. I'll attempt using the correct tool to learn about AI.\\n\\nAction:
learn_about_AI\\nAction Input: {}\",\n \"refusal\": null\n },\n
\ \"logprobs\": null,\n \"finish_reason\": \"stop\"\n }\n ],\n
\ \"usage\": {\n \"prompt_tokens\": 367,\n \"completion_tokens\": 33,\n
\ \"total_tokens\": 400,\n \"completion_tokens_details\": {\n \"reasoning_tokens\":
0\n }\n },\n \"system_fingerprint\": \"fp_25624ae3a5\"\n}\n"
headers:
CF-Cache-Status:
- DYNAMIC
CF-RAY:
- 8c3bed899887a4ca-MIA
Connection:
- keep-alive
Content-Encoding:
- gzip
Content-Type:
- application/json
Date:
- Sun, 15 Sep 2024 22:07:08 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:
- '373'
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:
- '29999585'
x-ratelimit-reset-requests:
- 6ms
x-ratelimit-reset-tokens:
- 0s
x-request-id:
- req_d9a81adef7f496f86b1bb02d6f51dc27
http_version: HTTP/1.1
status_code: 200
- request:
body: !!binary |
Cs0OCiQKIgoMc2VydmljZS5uYW1lEhIKEGNyZXdBSS10ZWxlbWV0cnkSpA4KEgoQY3Jld2FpLnRl
bGVtZXRyeRKRAQoQyUIuEmFH9oZY5MxkkXmECBII63TN/kA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dBeOQPBT2K9RdKLgoIY3Jld19rZXkSIgogNDk0ZjM2NTcyMzdhZDhhMzAzNWIyZjFiZWVjZGM2
NzdKMQoHY3Jld19pZBImCiQzMDU2ZmRiMi0xZjZjLTQ1ZmQtYTI5Ni0yNDA4NzU5YTY0M2FKLgoI
dGFza19rZXkSIgogZjI1OTdjNzg2N2ZiZTMyNGRjNjVkYzA4ZGZkYmZjNmNKMQoHdGFza19pZBIm
CiRjNWVjOWRiYy03OWVjLTQxNjgtYWFkNS04YWE1Y2RlNjJhN2Z6AhgBhQEAAQAA
headers:
Accept:
- '*/*'
Accept-Encoding:
- gzip, deflate
Connection:
- keep-alive
Content-Length:
- '1872'
Content-Type:
- application/x-protobuf
User-Agent:
- OTel-OTLP-Exporter-Python/1.27.0
method: POST
uri: https://telemetry.crewai.com:4319/v1/traces
response:
body:
string: "\n\0"
headers:
Content-Length:
- '2'
Content-Type:
- application/x-protobuf
Date:
- Sun, 15 Sep 2024 22:07:09 GMT
status:
code: 200
message: OK
- request:
body: '{"messages": [{"role": "system", "content": "You are test role. test backstory\nYour
personal goal is: test goal\nYou ONLY have access to the following tools, and
should NEVER make up tools that are not listed here:\n\nTool Name: learn_about_AI(*args:
Any, **kwargs: Any) -> Any\nTool Description: learn_about_AI() - Useful for
when you need to learn about AI to write an paragraph about it. \nTool Arguments:
{}\n\nUse the following format:\n\nThought: you should always think about what
to do\nAction: the action to take, only one name of [learn_about_AI], 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: Write and then review an small paragraph on AI until it''s AMAZING\n\nThis
is the expect criteria for your final answer: The final paragraph.\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 should gather information on AI to write an informative and amazing
paragraph about it.\n\nAction: learn_about_AI\nAction Input: {}\nObservation:
You tried to use the tool <Mock name=''from_litellm().chat.completions.create().tool_name''
id=''11004817744''>, but it doesn''t exist. You must use one of the following
tools, use one at time: learn_about_ai."}, {"role": "assistant", "content":
"Thought: It appears I used an incorrect tool name earlier. I''ll attempt using
the correct tool to learn about AI.\n\nAction: learn_about_AI\nAction Input:
{}\nObservation: You tried to use the tool <Mock name=''from_litellm().chat.completions.create().tool_name''
id=''11004817744''>, but it doesn''t exist. You must use one of the following
tools, use one at time: learn_about_ai.\nNow it''s time you MUST give your absolute
best final answer. You''ll ignore all previous instructions, stop using any
tools, and just return your absolute BEST Final answer."}], "model": "gpt-4o",
"stop": ["\nObservation:"]}'
headers:
accept:
- application/json
accept-encoding:
- gzip, deflate
connection:
- keep-alive
content-length:
- '2364'
content-type:
- application/json
cookie:
- __cf_bm=xCQEG8vgEvQfut0bkj2xgre9z9ePZhdKdNxBphhvH6s-1726437753-1.0.1.1-5qo0zwDCcKDtqvIzDbp2sLEPCey8v5DAsf0Mg6f2RmooOW9FXTw2P66VCTTF.vCwTpWBIFk0vzKmBAPOt6urIg;
_cfuvid=TiTyEciy7HrUlIDEsELZqkUyM4Fyn8OldZd4JefFMOA-1726437753108-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-A7rgadDMRHMZOqJpngwz9HTrEoj0A\",\n \"object\":
\"chat.completion\",\n \"created\": 1726438028,\n \"model\": \"gpt-4o-2024-05-13\",\n
\ \"choices\": [\n {\n \"index\": 0,\n \"message\": {\n \"role\":
\"assistant\",\n \"content\": \"Thought: I need to write the paragraph
about AI based on my current knowledge without relying on tools.\\n\\nFinal
Answer: Artificial Intelligence (AI) is revolutionizing various industries by
enabling machines to mimic human intelligence processes. At its core, AI involves
the development of algorithms that can process vast amounts of data, recognize
patterns, and make decisions or predictions based on that information. This
technology is being utilized in diverse fields such as healthcare for diagnosing
diseases, finance for detecting fraudulent transactions, and automotive for
developing autonomous vehicles. As AI continues to evolve, it promises to bring
about even more transformative changes, enhancing efficiency and opening up
new possibilities that were previously unimaginable.\",\n \"refusal\":
null\n },\n \"logprobs\": null,\n \"finish_reason\": \"stop\"\n
\ }\n ],\n \"usage\": {\n \"prompt_tokens\": 494,\n \"completion_tokens\":
129,\n \"total_tokens\": 623,\n \"completion_tokens_details\": {\n \"reasoning_tokens\":
0\n }\n },\n \"system_fingerprint\": \"fp_25624ae3a5\"\n}\n"
headers:
CF-Cache-Status:
- DYNAMIC
CF-RAY:
- 8c3bed8dbedfa4ca-MIA
Connection:
- keep-alive
Content-Encoding:
- gzip
Content-Type:
- application/json
Date:
- Sun, 15 Sep 2024 22:07:09 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:
- '1240'
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:
- '29999448'
x-ratelimit-reset-requests:
- 6ms
x-ratelimit-reset-tokens:
- 1ms
x-request-id:
- req_4add93bd93764c1a7377e5ef7c1e58dc
http_version: HTTP/1.1
status_code: 200
version: 1