Files
crewAI/tests/cassettes/test_using_contextual_memory.yaml
João Moura e77442cf34 Removing LangChain and Rebuilding Executor (#1322)
* rebuilding executor

* removing langchain

* Making all tests good

* fixing types and adding ability for nor using system prompts

* improving types

* pleasing the types gods

* pleasing the types gods

* fixing parser, tools and executor

* making sure all tests pass

* final pass

* fixing type

* Updating Docs

* preparing to cut new version
2024-09-16 14:14:04 -03:00

253 lines
12 KiB
YAML

interactions:
- request:
body: !!binary |
CsgNCiQKIgoMc2VydmljZS5uYW1lEhIKEGNyZXdBSS10ZWxlbWV0cnkSnw0KEgoQY3Jld2FpLnRl
bGVtZXRyeRKQAgoQWid0oNdlULgYb+IDEM95YRIIb/JAYRCrdNkqDlRhc2sgRXhlY3V0aW9uMAE5
UHs04FCt9RdBsCULx1Gt9RdKLgoIY3Jld19rZXkSIgogNzVkOWY1NzUyMjYzOTJlZmJkZWQwZmFi
ZWQ1NjU2ZWJKMQoHY3Jld19pZBImCiQwMDUyMGVjNC1iNTc5LTQzOGEtYjBlMy1kMjA2OGIzODlh
NzlKLgoIdGFza19rZXkSIgogM2QwYmRlZTMxMjdhZjk5MGIzNjZjMTJkZGJkNGE4YTZKMQoHdGFz
a19pZBImCiQyN2MyMGI1ZC1hZDk2LTRhYjItOTJiYi00Yzk5OWE1Y2IxOWV6AhgBhQEAAQAAEo4C
ChCF92mG+LeSsfqVlCH0EpyCEgieFxiMx6KDsSoMVGFzayBDcmVhdGVkMAE5aIxkx1Gt9RdB2BRn
x1Gt9RdKLgoIY3Jld19rZXkSIgogNzVkOWY1NzUyMjYzOTJlZmJkZWQwZmFiZWQ1NjU2ZWJKMQoH
Y3Jld19pZBImCiQwMDUyMGVjNC1iNTc5LTQzOGEtYjBlMy1kMjA2OGIzODlhNzlKLgoIdGFza19r
ZXkSIgogMzBmMzI4NjNhMmViNzk4ZDEwOTZjOTA3MDI4MDk4MzBKMQoHdGFza19pZBImCiRjMGQ3
MTljNC04MWYwLTRmMzAtODUyNi0zZjZmNDNmYjk5M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cmV3YWlfdmVyc2lvbhIICgYwLjU2LjNKIQoJdG9vbF9uYW1lEhQKEm11bHRp
cGxjYXRpb25fdG9vbEoOCghhdHRlbXB0cxICGAF6AhgBhQEAAQAAEpACChDs2FcN2OyOvJn2lgRa
AxdZEgjbD+4QO2p08ioOVGFzayBFeGVjdXRpb24wATk42tchUq31F0F4IVx6Uq31F0ouCghjcmV3
X2tleRIiCiA3NWQ5ZjU3NTIyNjM5MmVmYmRlZDBmYWJlZDU2NTZlYkoxCgdjcmV3X2lkEiYKJDAw
NTIwZWM0LWI1NzktNDM4YS1iMGUzLWQyMDY4YjM4OWE3OUouCgh0YXNrX2tleRIiCiAzZDBiZGVl
MzEyN2FmOTkwYjM2NmMxMmRkYmQ0YThhNkoxCgd0YXNrX2lkEiYKJDc0YzY2YWVmLTYyYzItNDY1
Mi04NDMzLWUyZWFjZmVlMWU5YnoCGAGFAQABAAA=
headers:
Accept:
- '*/*'
Accept-Encoding:
- gzip, deflate
Connection:
- keep-alive
Content-Length:
- '1739'
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, 16 Sep 2024 08:50:02 GMT
status:
code: 200
message: OK
- request:
body: !!binary |
CvEJCiQKIgoMc2VydmljZS5uYW1lEhIKEGNyZXdBSS10ZWxlbWV0cnkSyAkKEgoQY3Jld2FpLnRl
bGVtZXRyeRKgBwoQqPko9Z+SrnJXJW6kPwSOdRIICfa+mbDYkO4qDENyZXcgQ3JlYXRlZDABOajX
m4ZSrfUXQTi0nYZSrfUXShoKDmNyZXdhaV92ZXJzaW9uEggKBjAuNTYuM0oaCg5weXRob25fdmVy
c2lvbhIICgYzLjExLjdKLgoIY3Jld19rZXkSIgogYzk3YjVmZWI1ZDFiNjZiYjU5MDA2YWFhMDFh
MjljZDZKMQoHY3Jld19pZB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gxUYXNrIENyZWF0ZWQwATlAO6qGUq31F0FIjaqGUq31F0ouCghjcmV3X2tleRIiCiBjOTdiNWZl
YjVkMWI2NmJiNTkwMDZhYWEwMWEyOWNkNkoxCgdjcmV3X2lkEiYKJDUyMThjYTEwLTQzNDAtNGEz
NC05NjA1LWRmZDhlOTYwZmViNUouCgh0YXNrX2tleRIiCiA2Mzk5NjUxN2YzZjNmMWM5NGQ2YmI2
MTdhYTBiMWM0ZkoxCgd0YXNrX2lkEiYKJDM4NDUwYzUxLWZlNTYtNDhkNy05Yzc3LTNhYzc3ZDZm
NjQzZnoCGAGFAQABAAA=
headers:
Accept:
- '*/*'
Accept-Encoding:
- gzip, deflate
Connection:
- keep-alive
Content-Length:
- '1268'
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, 16 Sep 2024 08:50:07 GMT
status:
code: 200
message: OK
- request:
body: '{"messages": [{"role": "system", "content": "You are Researcher. You''re
an expert in research and you love to learn new things.\nYour personal goal
is: You research about math.\nTo give my best complete final answer to the task
use the exact following format:\n\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\nI MUST use these formats, my job depends on
it!"}, {"role": "user", "content": "\nCurrent Task: Research a topic to teach
a kid aged 6 about math.\n\nThis is the expect criteria for your final answer:
A topic, explanation, angle, and examples.\nyou MUST return the actual complete
content as the final answer, not a summary.\n\n# Useful context: \n<MagicMock
name=''build_context_for_task()'' id=''11325906960''>\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:
- '1014'
content-type:
- application/json
cookie:
- __cf_bm=1SckBhvJ18Dazp6bi8DEKYeiS9Q4.6_6i3nmLBw9b6g-1726476036-1.0.1.1-TnN4UpDXA33YXCVCUWOaZ12vGIg_o5NpJQEUHgjn6XdUgb7M0ND8PdkTfkd8rrxG5XFlPRMzI54GxZ0FeUY9xw;
_cfuvid=0Rs4xTPk7h7OIXuSbTgMVVD9JSoZeKMwnygKHoHQo3k-1726476036297-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-A81ikIO7NVYWrkkPbJT8vvGmFPdae\",\n \"object\":
\"chat.completion\",\n \"created\": 1726476602,\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\\nFinal
Answer: \\n\\n**Topic: Basic Addition**\\n\\n**Explanation:**\\nAddition is
one of the fundamental operations in math. It's a way to find out the total
or sum of two or more numbers. When we add, we put together different amounts
to get a larger amount.\\n\\n**Angle:**\\nWe'll approach addition with a fun
and engaging method using everyday items and visuals. This will help make the
concept clear and relatable.\\n\\n**Examples:**\\n\\n1. **Using Fruits:**\\n
\ - Imagine you have 2 apples and then you get 3 more apples. How many apples
do you have in total?\\n - Explanation: Place 2 apples on the table and then
add 3 more apples. Count all the apples together.\\n - Example: 2 apples +
3 apples = 5 apples\\n\\n2. **Toy Cars:**\\n - You have 4 toy cars and your
friend gives you 2 more. How many toy cars do you have now?\\n - Explanation:
Line up the 4 toy cars and then add the 2 new ones. Count all the cars to find
the total.\\n - Example: 4 toy cars + 2 toy cars = 6 toy cars\\n\\n3. **Buttons:**\\n
\ - There are 5 buttons on your shirt. You find 1 more button on the floor.
How many buttons do you have altogether?\\n - Explanation: Count the 5 buttons
on the shirt and then add the extra button from the floor. Count the total.\\n
\ - Example: 5 buttons + 1 button = 6 buttons\\n\\n4. **Fingers:**\\n - Hold
up 3 fingers on one hand and 2 fingers on the other. How many fingers are you
holding up in total?\\n - Explanation: Show the 3 fingers on one hand and
the 2 fingers on the other. Count all the fingers together.\\n - Example:
3 fingers + 2 fingers = 5 fingers\\n\\nAdditionally, you can use a simple number
line to demonstrate addition visually. For example, to add 3 and 4:\\n\\n- Start
at number 3 on the number line.\\n- Move 4 steps to the right.\\n- Where did
you land? At number 7!\\n\\n**Summarizing with Fun:**\\nSing a simple song or
rhyme that includes addition. For instance:\\n\\n\\\"Two little birds sitting
on a tree, add one more and how many do you see? Three little birds singing
in the sun, add one more and now we have fun. Four little birds chirping with
glee, add one more and now we have a spree! Five little birds singing out loud,
let's add them all, they make a happy crowd!\\\"\\n\\nWith these fun and practical
examples, learning addition becomes an enjoyable and intuitive process for a
6-year-old.\",\n \"refusal\": null\n },\n \"logprobs\": null,\n
\ \"finish_reason\": \"stop\"\n }\n ],\n \"usage\": {\n \"prompt_tokens\":
205,\n \"completion_tokens\": 580,\n \"total_tokens\": 785,\n \"completion_tokens_details\":
{\n \"reasoning_tokens\": 0\n }\n },\n \"system_fingerprint\": \"fp_25624ae3a5\"\n}\n"
headers:
CF-Cache-Status:
- DYNAMIC
CF-RAY:
- 8c3f9b4cdd6d2233-MIA
Connection:
- keep-alive
Content-Encoding:
- gzip
Content-Type:
- application/json
Date:
- Mon, 16 Sep 2024 08:50: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:
- '6890'
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:
- '29999765'
x-ratelimit-reset-requests:
- 6ms
x-ratelimit-reset-tokens:
- 0s
x-request-id:
- req_c8e5e122228f2172f279d8bf3bf9027a
http_version: HTTP/1.1
status_code: 200
version: 1