Files
crewAI/tests/cassettes/test_agent_function_calling_llm.yaml
2024-09-13 04:38:19 -05:00

311 lines
14 KiB
YAML

interactions:
- request:
body: '{"messages": [{"role": "user", "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\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. \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:"}], "model": "gpt-4-0125-preview", "stop": ["\nObservation"]}'
headers:
accept:
- application/json
accept-encoding:
- gzip, deflate
connection:
- keep-alive
content-length:
- '1355'
content-type:
- application/json
host:
- api.openai.com
user-agent:
- OpenAI/Python 1.44.0
x-stainless-arch:
- arm64
x-stainless-async:
- 'false'
x-stainless-lang:
- python
x-stainless-os:
- MacOS
x-stainless-package-version:
- 1.44.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-A5dwdiZbRhOjopxIKQzrAwrq70S9n\",\n \"object\":
\"chat.completion\",\n \"created\": 1725908551,\n \"model\": \"gpt-4-0125-preview\",\n
\ \"choices\": [\n {\n \"index\": 0,\n \"message\": {\n \"role\":
\"assistant\",\n \"content\": \"Thought: I should start by understanding
the basics and key aspects of AI to write an initial paragraph.\\nAction: learn_about_AI\\nAction
Input: {}\",\n \"refusal\": null\n },\n \"logprobs\": null,\n
\ \"finish_reason\": \"stop\"\n }\n ],\n \"usage\": {\n \"prompt_tokens\":
276,\n \"completion_tokens\": 30,\n \"total_tokens\": 306\n },\n \"system_fingerprint\":
null\n}\n"
headers:
CF-Cache-Status:
- DYNAMIC
CF-RAY:
- 8c096ee02aed17e4-SJC
Connection:
- keep-alive
Content-Encoding:
- gzip
Content-Type:
- application/json
Date:
- Mon, 09 Sep 2024 19:02:33 GMT
Server:
- cloudflare
Set-Cookie:
- __cf_bm=0urx.HTvFAks6NdKIyBgkYHokgDmu0IODHcGjveTcsc-1725908553-1.0.1.1-20xTCBCWXcEaWcP.UickTiVZDdyq2m4gXMr_o01Evhd7ISm7sDo.ZFff0JCABCHybWSxJJcDKkVFWoBYZXARBA;
path=/; expires=Mon, 09-Sep-24 19:32:33 GMT; domain=.api.openai.com; HttpOnly;
Secure; SameSite=None
- _cfuvid=fvh4oCHffK9igNnKrZVnhUds71vh008aBFsjNmU_L.k-1725908553254-0.0.1.1-604800000;
path=/; domain=.api.openai.com; HttpOnly; Secure; SameSite=None
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:
- '1434'
openai-version:
- '2020-10-01'
strict-transport-security:
- max-age=15552000; includeSubDomains; preload
x-ratelimit-limit-requests:
- '10000'
x-ratelimit-limit-tokens:
- '2000000'
x-ratelimit-remaining-requests:
- '9999'
x-ratelimit-remaining-tokens:
- '1999677'
x-ratelimit-reset-requests:
- 6ms
x-ratelimit-reset-tokens:
- 9ms
x-request-id:
- req_1523ca8c650b9f595724268f203a9ba6
http_version: HTTP/1.1
status_code: 200
- request:
body: !!binary |
CrILCiQKIgoMc2VydmljZS5uYW1lEhIKEGNyZXdBSS10ZWxlbWV0cnkSiQsKEgoQY3Jld2FpLnRl
bG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NiZi02M2Nh
LTRhYzUtYmQ0OC1hZDdiYWI0YWE1YzEiLCAiYXN5bmNfZXhlY3V0aW9uPyI6IGZhbHNlLCAiaHVt
YW5faW5wdXQ/IjogZmFsc2UsICJhZ2VudF9yb2xlIjogInRlc3Qgcm9sZSIsICJhZ2VudF9rZXki
OiAiZTE0OGU1MzIwMjkzNDk5ZjhjZWJlYTgyNmU3MjU4MmIiLCAidG9vbHNfbmFtZXMiOiBbImxl
YXJuX2Fib3V0X2FpIl19XXoCGAGFAQABAAASjgIKEL3lqcOLL/ogiSwoQmJzLecSCDzE/y4HDEGQ
KgxUYXNrIENyZWF0ZWQwATloPKjmrqjzF0FwjqjmrqjzF0ouCghjcmV3X2tleRIiCiA0OTRmMzY1
NzIzN2FkOGEzMDM1YjJmMWJlZWNkYzY3N0oxCgdjcmV3X2lkEiYKJGEyNTlmNmU2LWEzYTMtNDMw
Yi05ZmU2LWY5YjVkNDYzNGQxN0ouCgh0YXNrX2tleRIiCiBmMjU5N2M3ODY3ZmJlMzI0ZGM2NWRj
MDhkZmRiZmM2Y0oxCgd0YXNrX2lkEiYKJGNjZTBhY2JmLTYzY2EtNGFjNS1iZDQ4LWFkN2JhYjRh
YTVjMXoCGAGFAQABAAAShQEKEB5NIhShETWoK8CVHW2+6JYSCMkX3E9ukibUKhBUb29sIFVzYWdl
IEVycm9yMAE5+JOZWK+o8xdBkDOeWK+o8xdKGgoOY3Jld2FpX3ZlcnNpb24SCAoGMC41NS4yShsK
A2xsbRIUChJncHQtMy41LXR1cmJvLTAxMjV6AhgBhQEAAQAA
headers:
Accept:
- '*/*'
Accept-Encoding:
- gzip, deflate
Connection:
- keep-alive
Content-Length:
- '1461'
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:
- Mon, 09 Sep 2024 19:02:36 GMT
status:
code: 200
message: OK
- request:
body: '{"messages": [{"role": "user", "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\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. \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:"}, {"role": "assistant", "content": "Thought: I should start
by understanding the basics and key aspects of AI to write an initial paragraph.\nAction:
learn_about_AI\nAction Input: {}\nObservation: I encountered an error: Failed
to convert text into a pydantic model due to the following error: ''Instructor''
object has no attribute ''content''\nMoving on then. I MUST either use a tool
(use one at time) OR give my best final answer. To Use the following format:\n\nThought:
you should always think about what to do\nAction: the action to take, should
be one of [learn_about_AI]\nAction Input: the input to the action, dictionary
enclosed in curly braces\nObservation: the result of the action\n... (this Thought/Action/Action
Input/Observation can repeat N times)\nThought: I now can give a great answer\nFinal
Answer: Your final answer must be the great and the most complete as possible,
it must be outcome described\n\n "}], "model": "gpt-4-0125-preview", "stop":
["\nObservation"]}'
headers:
accept:
- application/json
accept-encoding:
- gzip, deflate
connection:
- keep-alive
content-length:
- '2278'
content-type:
- application/json
cookie:
- __cf_bm=0urx.HTvFAks6NdKIyBgkYHokgDmu0IODHcGjveTcsc-1725908553-1.0.1.1-20xTCBCWXcEaWcP.UickTiVZDdyq2m4gXMr_o01Evhd7ISm7sDo.ZFff0JCABCHybWSxJJcDKkVFWoBYZXARBA;
_cfuvid=fvh4oCHffK9igNnKrZVnhUds71vh008aBFsjNmU_L.k-1725908553254-0.0.1.1-604800000
host:
- api.openai.com
user-agent:
- OpenAI/Python 1.44.0
x-stainless-arch:
- arm64
x-stainless-async:
- 'false'
x-stainless-lang:
- python
x-stainless-os:
- MacOS
x-stainless-package-version:
- 1.44.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-A5dwffcfH20t1LNeOjqUdmQISfpfF\",\n \"object\":
\"chat.completion\",\n \"created\": 1725908553,\n \"model\": \"gpt-4-0125-preview\",\n
\ \"choices\": [\n {\n \"index\": 0,\n \"message\": {\n \"role\":
\"assistant\",\n \"content\": \"Since I cannot proceed with the given
scenario as intended, let's assume a hypothetical situation to continue:\\n\\nThought:
Since I need to write and then review a small paragraph on AI until it's amazing
and I encountered an issue with performing an action to gather information,
I will craft a paragraph based on generalized knowledge of AI.\\n\\nFinal Answer:
Artificial Intelligence (AI) marks a forefront of technological innovation,
embodying systems equipped to perform tasks that typically require human intelligence.
These tasks range from recognizing speech, making decisions, translating languages
to identifying patterns in data. At its core, AI is driven by algorithms that
adjust and learn from data, making it not just reactive, but adaptive. Its application
spans various fields, including healthcare, where it's revolutionizing diagnostics
and treatment plans, to automotive industries with the advancement of autonomous
vehicles. Moreover, AI's role in analyzing vast datasets is invaluable in addressing
climate change, by predicting and mitigating environmental risks. The potential
of AI extends beyond current applications, promising to redefine industries,
workflows, and our everyday lives. This narrative positions AI not just as a
technological advancement, but as a pivotal element in shaping a sustainable,
efficient, and innovative future.\",\n \"refusal\": null\n },\n
\ \"logprobs\": null,\n \"finish_reason\": \"stop\"\n }\n ],\n
\ \"usage\": {\n \"prompt_tokens\": 476,\n \"completion_tokens\": 236,\n
\ \"total_tokens\": 712\n },\n \"system_fingerprint\": null\n}\n"
headers:
CF-Cache-Status:
- DYNAMIC
CF-RAY:
- 8c096eea6cb917e4-SJC
Connection:
- keep-alive
Content-Encoding:
- gzip
Content-Type:
- application/json
Date:
- Mon, 09 Sep 2024 19:02:42 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:
- '9281'
openai-version:
- '2020-10-01'
strict-transport-security:
- max-age=15552000; includeSubDomains; preload
x-ratelimit-limit-requests:
- '10000'
x-ratelimit-limit-tokens:
- '2000000'
x-ratelimit-remaining-requests:
- '9999'
x-ratelimit-remaining-tokens:
- '1999457'
x-ratelimit-reset-requests:
- 6ms
x-ratelimit-reset-tokens:
- 16ms
x-request-id:
- req_7a6d45f063b974efda6ce460d33164dd
http_version: HTTP/1.1
status_code: 200
version: 1