Files
crewAI/tests/cassettes/test_using_contextual_memory.yaml
2024-09-23 17:45:20 -03:00

222 lines
11 KiB
YAML

interactions:
- request:
body: !!binary |
CpIYCiQKIgoMc2VydmljZS5uYW1lEhIKEGNyZXdBSS10ZWxlbWV0cnkS6RcKEgoQY3Jld2FpLnRl
bGVtZXRyeRKVAQoQBg8ZgkGiKtwmuY0LCkU9hhIIaVmby/oK2sQqClRvb2wgVXNhZ2UwATmAXN0o
G/f3F0GQceAoG/f3F0oaCg5jcmV3YWlfdmVyc2lvbhIICgYwLjYxLjBKIQoJdG9vbF9uYW1lEhQK
Em11bHRpcGxjYXRpb25fdG9vbEoOCghhdHRlbXB0cxICGAF6AhgBhQEAAQAAEpACChBfvR/ovOFM
WoOxoLxNWNOREgg3wKBHSdq1rSoOVGFzayBFeGVjdXRpb24wATmA2B/jGvf3F0EwsV9RG/f3F0ou
CghjcmV3X2tleRIiCiA3NWQ5ZjU3NTIyNjM5MmVmYmRlZDBmYWJlZDU2NTZlYkoxCgdjcmV3X2lk
EiYKJGYzNTExMzM2LTg0YzItNDE4YS05NzhhLTgyY2FiZDU1ZTY1YUouCgh0YXNrX2tleRIiCiAz
ZDBiZGVlMzEyN2FmOTkwYjM2NmMxMmRkYmQ0YThhNkoxCgd0YXNrX2lkEiYKJDIxMTI0NGFiLTZj
M2EtNGI4Yy1iMjZiLTU3MmVmMzExNTk4OXoCGAGFAQABAAASjgIKECt10Txyu6B/9uy6SiS6VmUS
CBY+81pTAxdmKgxUYXNrIENyZWF0ZWQwATlgLrJRG/f3F0EwJLVRG/f3F0ouCghjcmV3X2tleRIi
CiA3NWQ5ZjU3NTIyNjM5MmVmYmRlZDBmYWJlZDU2NTZlYkoxCgdjcmV3X2lkEiYKJGYzNTExMzM2
LTg0YzItNDE4YS05NzhhLTgyY2FiZDU1ZTY1YUouCgh0YXNrX2tleRIiCiAzMGYzMjg2M2EyZWI3
OThkMTA5NmM5MDcwMjgwOTgzMEoxCgd0YXNrX2lkEiYKJGZi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BhQEAAQAA
headers:
Accept:
- '*/*'
Accept-Encoding:
- gzip, deflate
Connection:
- keep-alive
Content-Length:
- '3093'
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, 23 Sep 2024 19:44:43 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=''11307327696''>\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"}'
headers:
accept:
- application/json
accept-encoding:
- gzip, deflate
connection:
- keep-alive
content-length:
- '986'
content-type:
- application/json
cookie:
- __cf_bm=iOyeV6o_mR0USNA.hPdpKPtAzYgMoprpObRHvn0tmcc-1727120402-1.0.1.1-yMOSz4qncmM1wdtrwFfBQNfITkLs2w_sxijeM44F7aSIrclbkQ2G_18su02eVMVPMW2O55B1rty8BiY_WAoayg;
_cfuvid=9K_ipT1uTVyDTneB1W5OZHPxCh36aOsDZCBnsQTONqQ-1727119501207-0.0.1.1-604800000
host:
- api.openai.com
user-agent:
- OpenAI/Python 1.47.0
x-stainless-arch:
- arm64
x-stainless-async:
- 'false'
x-stainless-lang:
- python
x-stainless-os:
- MacOS
x-stainless-package-version:
- 1.47.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-AAjH97XlCyyAdDx4GuKn2HxCoLpGZ\",\n \"object\":
\"chat.completion\",\n \"created\": 1727120683,\n \"model\": \"gpt-4o-2024-05-13\",\n
\ \"choices\": [\n {\n \"index\": 0,\n \"message\": {\n \"role\":
\"assistant\",\n \"content\": \"I now can give a great answer.\\nFinal
Answer: Let's explore the wonderful world of \\\"Shapes and Geometry\\\" to
teach a kid aged 6 about math.\\n\\n**Topic: Shapes and Geometry**\\n\\n**Explanation:**\\nShapes
and Geometry are fundamental concepts in math and are very visual, making them
perfect for young learners. At the age of 6, kids are natural explorers and
are very curious about the world around them. Teaching them about different
shapes can help them start recognizing patterns, improve their spatial awareness,
and understand the concept of geometry.\\n\\n**Angle:**\\nThe best angle to
approach this topic is through interactive and hands-on activities. Kids love
to play and engage with the material, so incorporating games, drawing, and physical
activities will make learning fun and memorable. \\n\\n**Examples:**\\n\\n1.
**Learning Different Shapes:**\\n - **Circle**: It\u2019s round and doesn\u2019t
have any edges or corners.\\n - **Square**: It has 4 equal sides and 4 corners.\\n
\ - **Triangle**: It has 3 sides and 3 corners.\\n - **Rectangle**: It has
4 sides and 4 corners, but opposite sides are equal.\\n\\n2. **Interactive Activities:**\\n
\ - **Shape Hunt**: Give the child a list of shapes and ask them to find objects
around the house or classroom that match those shapes (e.g., a clock for a circle,
a book for a rectangle).\\n - **Shape Drawing**: Provide paper and crayons
for the child to draw and color different shapes. You can also ask them to combine
shapes to create a picture, like a house (rectangle with a triangle roof).\\n\\n3.
**Games and Songs:**\\n - **Shape Sorting Game**: Use cut-out shapes and ask
the child to sort them into different categories.\\n - **Songs About Shapes**:
There are many children\u2019s songs about shapes that can make learning them
more entertaining and help with memory retention. For instance, \u201CThe Shape
Song\u201D which includes lyrics about different shapes and their properties.\\n\\n4.
**Physical Activities:**\\n - **Shape Hopscotch**: Draw different shapes on
the ground with chalk and call out the name of a shape for the child to jump
on.\\n - **Shape Building with Blocks**: Using building blocks, ask the child
to construct items using specific shapes.\\n\\nThese examples and activities
provide a comprehensive and engaging way to introduce a 6-year-old to shapes
and basic geometry concepts, laying a strong foundation for more advanced mathematical
concepts in the future.\",\n \"refusal\": null\n },\n \"logprobs\":
null,\n \"finish_reason\": \"stop\"\n }\n ],\n \"usage\": {\n \"prompt_tokens\":
205,\n \"completion_tokens\": 512,\n \"total_tokens\": 717,\n \"completion_tokens_details\":
{\n \"reasoning_tokens\": 0\n }\n },\n \"system_fingerprint\": \"fp_3537616b13\"\n}\n"
headers:
CF-Cache-Status:
- DYNAMIC
CF-RAY:
- 8c7d07ed099aa4c7-MIA
Connection:
- keep-alive
Content-Encoding:
- gzip
Content-Type:
- application/json
Date:
- Mon, 23 Sep 2024 19:44:52 GMT
Server:
- cloudflare
Transfer-Encoding:
- chunked
X-Content-Type-Options:
- nosniff
access-control-expose-headers:
- X-Request-ID
openai-organization:
- crewai-iuxna1
openai-processing-ms:
- '9096'
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_a33eaff3dc22313c4044ff38a2066013
http_version: HTTP/1.1
status_code: 200
version: 1