Files
crewAI/tests/cassettes/test_async_tool_using_within_isolated_crew.yaml
Greyson LaLonde 03a711c365 rerecord cassetes
2025-09-26 22:44:04 -04:00

309 lines
13 KiB
YAML

interactions:
- request:
body: '{"trace_id": "81a3325e-8a7a-4c3c-9559-7220013689d8", "execution_type":
"crew", "user_identifier": null, "execution_context": {"crew_fingerprint": null,
"crew_name": "crew", "flow_name": null, "crewai_version": "0.201.1", "privacy_level":
"standard"}, "execution_metadata": {"expected_duration_estimate": 300, "agent_count":
0, "task_count": 0, "flow_method_count": 0, "execution_started_at": "2025-09-27T02:21:16.381781+00:00"}}'
headers:
Accept:
- '*/*'
Accept-Encoding:
- gzip, deflate
Connection:
- keep-alive
Content-Length:
- '428'
Content-Type:
- application/json
User-Agent:
- CrewAI-CLI/0.201.1
X-Crewai-Version:
- 0.201.1
method: POST
uri: https://app.crewai.com/crewai_plus/api/v1/tracing/batches
response:
body:
string: '{"error":"bad_credentials","message":"Bad credentials"}'
headers:
Connection:
- keep-alive
Content-Length:
- '55'
Content-Type:
- application/json; charset=utf-8
Date:
- Sat, 27 Sep 2025 02:21:16 GMT
cache-control:
- no-cache
content-security-policy:
- 'default-src ''self'' *.app.crewai.com app.crewai.com; script-src ''self''
''unsafe-inline'' *.app.crewai.com app.crewai.com https://cdn.jsdelivr.net/npm/apexcharts
https://www.gstatic.com https://run.pstmn.io https://js.hubspot.com http://js-na1.hs-scripts.com
https://bat.bing.com https://browser.sentry-cdn.com https://cdn.amplitude.com
https://cdn.segment.com https://d1d3n03t5zntha.cloudfront.net/ https://descriptusercontent.com
https://edge.fullstory.com https://googleads.g.doubleclick.net https://js-na1.hs-scripts.com
https://js.hs-analytics.net https://js.hs-banner.com https://js.hsadspixel.net
https://js.hscollectedforms.net https://js.sentry-cdn.com https://js.usemessages.com
https://snap.licdn.com https://static.cloudflareinsights.com https://static.reo.dev
https://www.google-analytics.com https://www.googletagmanager.com https://share.descript.com/;
style-src ''self'' ''unsafe-inline'' *.app.crewai.com app.crewai.com https://cdn.jsdelivr.net/npm/apexcharts;
img-src ''self'' data: *.app.crewai.com app.crewai.com https://zeus.tools.crewai.com
https://dashboard.tools.crewai.com https://cdn.jsdelivr.net https://forms.hsforms.com
https://track.hubspot.com https://px.ads.linkedin.com https://px4.ads.linkedin.com
https://www.google.com https://www.google.com.br; font-src ''self'' data:
*.app.crewai.com app.crewai.com; connect-src ''self'' *.app.crewai.com app.crewai.com
https://zeus.tools.crewai.com https://connect.useparagon.com/ https://zeus.useparagon.com/*
https://*.useparagon.com/* https://run.pstmn.io https://connect.tools.crewai.com/
https://www.google-analytics.com https://edge.fullstory.com https://rs.fullstory.com
https://api.hubspot.com https://forms.hscollectedforms.net https://api.hubapi.com
https://px.ads.linkedin.com https://px4.ads.linkedin.com https://google.com/pagead/form-data/16713662509
https://google.com/ccm/form-data/16713662509 https://www.google.com/ccm/collect
https://*.sentry.io https://worker-actionkit.tools.crewai.com https://api.reo.dev;
frame-src ''self'' *.app.crewai.com app.crewai.com https://connect.useparagon.com/
https://zeus.tools.crewai.com https://zeus.useparagon.com/* https://connect.tools.crewai.com/
https://app.hubspot.com/ https://td.doubleclick.net https://www.googletagmanager.com/
https://www.youtube.com https://share.descript.com'
permissions-policy:
- camera=(), microphone=(self), geolocation=()
referrer-policy:
- strict-origin-when-cross-origin
strict-transport-security:
- max-age=63072000; includeSubDomains
vary:
- Accept
x-content-type-options:
- nosniff
x-frame-options:
- SAMEORIGIN
x-permitted-cross-domain-policies:
- none
x-request-id:
- 2bcc5550-6cbd-4c58-a1ef-cbe204ec0c25
x-runtime:
- '0.361490'
x-xss-protection:
- 1; mode=block
status:
code: 401
message: Unauthorized
- request:
body: '{"messages": [{"role": "system", "content": "You are Simple role. Simple
backstory\nYour personal goal is: Simple goal\nYou ONLY have access to the following
tools, and should NEVER make up tools that are not listed here:\n\nTool Name:
my_tool\nTool Arguments: {}\nTool Description: This is a tool that does something\n\nIMPORTANT:
Use the following format in your response:\n\n```\nThought: you should always
think about what to do\nAction: the action to take, only one name of [my_tool],
just the name, exactly as it''s written.\nAction Input: the input to the action,
just a simple JSON object, enclosed in curly braces, using \" to wrap keys and
values.\nObservation: the result of the action\n```\n\nOnce all necessary information
is gathered, return the following format:\n\n```\nThought: I now know the final
answer\nFinal Answer: the final answer to the original input question\n```"},
{"role": "user", "content": "\nCurrent Task: Use the custom tool result as answer.\n\nThis
is the expected criteria for your final answer: Use the tool result\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-mini", "stop":
["\nObservation:"]}'
headers:
accept:
- application/json
accept-encoding:
- gzip, deflate
connection:
- keep-alive
content-length:
- '1322'
content-type:
- application/json
host:
- api.openai.com
user-agent:
- OpenAI/Python 1.109.1
x-stainless-arch:
- arm64
x-stainless-async:
- 'false'
x-stainless-lang:
- python
x-stainless-os:
- MacOS
x-stainless-package-version:
- 1.109.1
x-stainless-raw-response:
- 'true'
x-stainless-read-timeout:
- '600.0'
x-stainless-retry-count:
- '0'
x-stainless-runtime:
- CPython
x-stainless-runtime-version:
- 3.10.18
method: POST
uri: https://api.openai.com/v1/chat/completions
response:
content: "{\n \"id\": \"chatcmpl-CKEqkvOQvLv9Kd0yLJRjcU0wWVnJS\",\n \"object\"\
: \"chat.completion\",\n \"created\": 1758939678,\n \"model\": \"gpt-4o-mini-2024-07-18\"\
,\n \"choices\": [\n {\n \"index\": 0,\n \"message\": {\n \
\ \"role\": \"assistant\",\n \"content\": \"Thought: I need to gather\
\ information using the available tool to provide a complete answer.\\nAction:\
\ my_tool\\nAction Input: {}\",\n \"refusal\": null,\n \"annotations\"\
: []\n },\n \"logprobs\": null,\n \"finish_reason\": \"stop\"\
\n }\n ],\n \"usage\": {\n \"prompt_tokens\": 262,\n \"completion_tokens\"\
: 28,\n \"total_tokens\": 290,\n \"prompt_tokens_details\": {\n \"\
cached_tokens\": 0,\n \"audio_tokens\": 0\n },\n \"completion_tokens_details\"\
: {\n \"reasoning_tokens\": 0,\n \"audio_tokens\": 0,\n \"accepted_prediction_tokens\"\
: 0,\n \"rejected_prediction_tokens\": 0\n }\n },\n \"service_tier\"\
: \"default\",\n \"system_fingerprint\": \"fp_560af6e559\"\n}\n"
headers:
CF-RAY:
- 985786d6bb03c698-EWR
Connection:
- keep-alive
Content-Encoding:
- gzip
Content-Type:
- application/json
Date:
- Sat, 27 Sep 2025 02:21:19 GMT
Server:
- cloudflare
Set-Cookie:
- __cf_bm=g6w90fWY0stD2h_FGp3W5ikeAmMklxuEdbOvCBlOi7o-1758939679-1.0.1.1-PW.zX09HnaT4Yit3swc4mhSo1i13RdWod1LGrN2cTaMeeO.StwlX998juT.FZ51zF.Bnxo69zY8PErxgN_4yromHIewXn0GKfhrvCc0wEIo;
path=/; expires=Sat, 27-Sep-25 02:51:19 GMT; domain=.api.openai.com; HttpOnly;
Secure; SameSite=None
- _cfuvid=2Ae4qQv4dGxcSDdGih9CxrU2csNTKCZYrswQvZZLnm0-1758939679098-0.0.1.1-604800000;
path=/; domain=.api.openai.com; HttpOnly; Secure; SameSite=None
Strict-Transport-Security:
- max-age=31536000; includeSubDomains; preload
Transfer-Encoding:
- chunked
X-Content-Type-Options:
- nosniff
access-control-expose-headers:
- X-Request-ID
alt-svc:
- h3=":443"; ma=86400
cf-cache-status:
- DYNAMIC
openai-organization:
- REDACTED
openai-processing-ms:
- '709'
openai-project:
- REDACTED
openai-version:
- '2020-10-01'
x-envoy-upstream-service-time:
- '1110'
x-openai-proxy-wasm:
- v0.1
x-ratelimit-limit-project-tokens:
- '150000000'
x-ratelimit-limit-requests:
- '30000'
x-ratelimit-limit-tokens:
- '150000000'
x-ratelimit-remaining-project-tokens:
- '149999707'
x-ratelimit-remaining-requests:
- '29999'
x-ratelimit-remaining-tokens:
- '149999705'
x-ratelimit-reset-project-tokens:
- 0s
x-ratelimit-reset-requests:
- 2ms
x-ratelimit-reset-tokens:
- 0s
x-request-id:
- req_f4aca296ded34bdea35dbf53a6237d74
http_version: HTTP/1.1
status_code: 200
- request:
body: '{"status": "failed", "failure_reason": "Error sending events to backend"}'
headers:
Accept:
- '*/*'
Accept-Encoding:
- gzip, deflate
Connection:
- keep-alive
Content-Length:
- '73'
Content-Type:
- application/json
User-Agent:
- CrewAI-CLI/0.201.1
X-Crewai-Version:
- 0.201.1
method: PATCH
uri: https://app.crewai.com/crewai_plus/api/v1/tracing/batches/None
response:
body:
string: '{"error":"bad_credentials","message":"Bad credentials"}'
headers:
Connection:
- keep-alive
Content-Length:
- '55'
Content-Type:
- application/json; charset=utf-8
Date:
- Sat, 27 Sep 2025 02:21:19 GMT
cache-control:
- no-cache
content-security-policy:
- 'default-src ''self'' *.app.crewai.com app.crewai.com; script-src ''self''
''unsafe-inline'' *.app.crewai.com app.crewai.com https://cdn.jsdelivr.net/npm/apexcharts
https://www.gstatic.com https://run.pstmn.io https://js.hubspot.com http://js-na1.hs-scripts.com
https://bat.bing.com https://browser.sentry-cdn.com https://cdn.amplitude.com
https://cdn.segment.com https://d1d3n03t5zntha.cloudfront.net/ https://descriptusercontent.com
https://edge.fullstory.com https://googleads.g.doubleclick.net https://js-na1.hs-scripts.com
https://js.hs-analytics.net https://js.hs-banner.com https://js.hsadspixel.net
https://js.hscollectedforms.net https://js.sentry-cdn.com https://js.usemessages.com
https://snap.licdn.com https://static.cloudflareinsights.com https://static.reo.dev
https://www.google-analytics.com https://www.googletagmanager.com https://share.descript.com/;
style-src ''self'' ''unsafe-inline'' *.app.crewai.com app.crewai.com https://cdn.jsdelivr.net/npm/apexcharts;
img-src ''self'' data: *.app.crewai.com app.crewai.com https://zeus.tools.crewai.com
https://dashboard.tools.crewai.com https://cdn.jsdelivr.net https://forms.hsforms.com
https://track.hubspot.com https://px.ads.linkedin.com https://px4.ads.linkedin.com
https://www.google.com https://www.google.com.br; font-src ''self'' data:
*.app.crewai.com app.crewai.com; connect-src ''self'' *.app.crewai.com app.crewai.com
https://zeus.tools.crewai.com https://connect.useparagon.com/ https://zeus.useparagon.com/*
https://*.useparagon.com/* https://run.pstmn.io https://connect.tools.crewai.com/
https://www.google-analytics.com https://edge.fullstory.com https://rs.fullstory.com
https://api.hubspot.com https://forms.hscollectedforms.net https://api.hubapi.com
https://px.ads.linkedin.com https://px4.ads.linkedin.com https://google.com/pagead/form-data/16713662509
https://google.com/ccm/form-data/16713662509 https://www.google.com/ccm/collect
https://*.sentry.io https://worker-actionkit.tools.crewai.com https://api.reo.dev;
frame-src ''self'' *.app.crewai.com app.crewai.com https://connect.useparagon.com/
https://zeus.tools.crewai.com https://zeus.useparagon.com/* https://connect.tools.crewai.com/
https://app.hubspot.com/ https://td.doubleclick.net https://www.googletagmanager.com/
https://www.youtube.com https://share.descript.com'
permissions-policy:
- camera=(), microphone=(self), geolocation=()
referrer-policy:
- strict-origin-when-cross-origin
strict-transport-security:
- max-age=63072000; includeSubDomains
vary:
- Accept
x-content-type-options:
- nosniff
x-frame-options:
- SAMEORIGIN
x-permitted-cross-domain-policies:
- none
x-request-id:
- 2fbcf509-77be-49ad-a7c8-157c96d3da03
x-runtime:
- '0.272332'
x-xss-protection:
- 1; mode=block
status:
code: 401
message: Unauthorized
version: 1