Files
crewAI/tests/cassettes/test_output_pydantic_to_another_task.yaml
João Moura 2530196cf8 fixing tests
2024-02-28 03:44:23 -03:00

486 lines
18 KiB
YAML

interactions:
- request:
body: '{"messages": [{"role": "user", "content": "You are Scorer.\nYou''re an
expert scorer, specialized in scoring titles.\n\nYour personal goal is: Score
the titleTo give my final answer use the exact following format:\n\n```\nFinal
Answer: [my expected final answer, entire content of my most complete final
answer goes here]\n```\nI MUST use these formats, my jobs depends on it!\n\nCurrent
Task: Give me an integer score between 1-5 for the following title: ''The impact
of AI in the future of work''\nYour final answer must be: The score of the title.\n\n
Begin! This is VERY important to you, your job depends on it!\n\n\n"}], "model":
"gpt-4-0125-preview", "n": 1, "stop": ["\nResult"], "stream": true, "temperature":
0.7}'
headers:
accept:
- application/json
accept-encoding:
- gzip, deflate, br
connection:
- keep-alive
content-length:
- '720'
content-type:
- application/json
host:
- api.openai.com
user-agent:
- OpenAI/Python 1.12.0
x-stainless-arch:
- arm64
x-stainless-async:
- 'false'
x-stainless-lang:
- python
x-stainless-os:
- MacOS
x-stainless-package-version:
- 1.12.0
x-stainless-runtime:
- CPython
x-stainless-runtime-version:
- 3.11.7
method: POST
uri: https://api.openai.com/v1/chat/completions
response:
body:
string: 'data: {"id":"chatcmpl-8x6vSHnKpeRUkWUr64TaKxKwYr55l","object":"chat.completion.chunk","created":1709098666,"model":"gpt-4-0125-preview","system_fingerprint":"fp_89b1a570e1","choices":[{"index":0,"delta":{"role":"assistant","content":""},"logprobs":null,"finish_reason":null}]}
data: {"id":"chatcmpl-8x6vSHnKpeRUkWUr64TaKxKwYr55l","object":"chat.completion.chunk","created":1709098666,"model":"gpt-4-0125-preview","system_fingerprint":"fp_89b1a570e1","choices":[{"index":0,"delta":{"content":"Final"},"logprobs":null,"finish_reason":null}]}
data: {"id":"chatcmpl-8x6vSHnKpeRUkWUr64TaKxKwYr55l","object":"chat.completion.chunk","created":1709098666,"model":"gpt-4-0125-preview","system_fingerprint":"fp_89b1a570e1","choices":[{"index":0,"delta":{"content":"
Answer"},"logprobs":null,"finish_reason":null}]}
data: {"id":"chatcmpl-8x6vSHnKpeRUkWUr64TaKxKwYr55l","object":"chat.completion.chunk","created":1709098666,"model":"gpt-4-0125-preview","system_fingerprint":"fp_89b1a570e1","choices":[{"index":0,"delta":{"content":":"},"logprobs":null,"finish_reason":null}]}
data: {"id":"chatcmpl-8x6vSHnKpeRUkWUr64TaKxKwYr55l","object":"chat.completion.chunk","created":1709098666,"model":"gpt-4-0125-preview","system_fingerprint":"fp_89b1a570e1","choices":[{"index":0,"delta":{"content":"
The"},"logprobs":null,"finish_reason":null}]}
data: {"id":"chatcmpl-8x6vSHnKpeRUkWUr64TaKxKwYr55l","object":"chat.completion.chunk","created":1709098666,"model":"gpt-4-0125-preview","system_fingerprint":"fp_89b1a570e1","choices":[{"index":0,"delta":{"content":"
score"},"logprobs":null,"finish_reason":null}]}
data: {"id":"chatcmpl-8x6vSHnKpeRUkWUr64TaKxKwYr55l","object":"chat.completion.chunk","created":1709098666,"model":"gpt-4-0125-preview","system_fingerprint":"fp_89b1a570e1","choices":[{"index":0,"delta":{"content":"
of"},"logprobs":null,"finish_reason":null}]}
data: {"id":"chatcmpl-8x6vSHnKpeRUkWUr64TaKxKwYr55l","object":"chat.completion.chunk","created":1709098666,"model":"gpt-4-0125-preview","system_fingerprint":"fp_89b1a570e1","choices":[{"index":0,"delta":{"content":"
the"},"logprobs":null,"finish_reason":null}]}
data: {"id":"chatcmpl-8x6vSHnKpeRUkWUr64TaKxKwYr55l","object":"chat.completion.chunk","created":1709098666,"model":"gpt-4-0125-preview","system_fingerprint":"fp_89b1a570e1","choices":[{"index":0,"delta":{"content":"
title"},"logprobs":null,"finish_reason":null}]}
data: {"id":"chatcmpl-8x6vSHnKpeRUkWUr64TaKxKwYr55l","object":"chat.completion.chunk","created":1709098666,"model":"gpt-4-0125-preview","system_fingerprint":"fp_89b1a570e1","choices":[{"index":0,"delta":{"content":"
is"},"logprobs":null,"finish_reason":null}]}
data: {"id":"chatcmpl-8x6vSHnKpeRUkWUr64TaKxKwYr55l","object":"chat.completion.chunk","created":1709098666,"model":"gpt-4-0125-preview","system_fingerprint":"fp_89b1a570e1","choices":[{"index":0,"delta":{"content":"
"},"logprobs":null,"finish_reason":null}]}
data: {"id":"chatcmpl-8x6vSHnKpeRUkWUr64TaKxKwYr55l","object":"chat.completion.chunk","created":1709098666,"model":"gpt-4-0125-preview","system_fingerprint":"fp_89b1a570e1","choices":[{"index":0,"delta":{"content":"4"},"logprobs":null,"finish_reason":null}]}
data: {"id":"chatcmpl-8x6vSHnKpeRUkWUr64TaKxKwYr55l","object":"chat.completion.chunk","created":1709098666,"model":"gpt-4-0125-preview","system_fingerprint":"fp_89b1a570e1","choices":[{"index":0,"delta":{"content":"."},"logprobs":null,"finish_reason":null}]}
data: {"id":"chatcmpl-8x6vSHnKpeRUkWUr64TaKxKwYr55l","object":"chat.completion.chunk","created":1709098666,"model":"gpt-4-0125-preview","system_fingerprint":"fp_89b1a570e1","choices":[{"index":0,"delta":{},"logprobs":null,"finish_reason":"stop"}]}
data: [DONE]
'
headers:
CF-Cache-Status:
- DYNAMIC
CF-RAY:
- 85c6514609f10183-GRU
Cache-Control:
- no-cache, must-revalidate
Connection:
- keep-alive
Content-Type:
- text/event-stream
Date:
- Wed, 28 Feb 2024 05:37:46 GMT
Server:
- cloudflare
Set-Cookie:
- __cf_bm=QwfZbmYv1tgZDvQYAsGPH5rNXRpLrDZsiQUY79E.GXw-1709098666-1.0-ASl39i/eqx5as/swlkaMYPeezDfFSCSwNTgXtHIPIMMmBIIbmfny4qsfHBKov+s148VW7mN8YedP0fShByF29tU=;
path=/; expires=Wed, 28-Feb-24 06:07:46 GMT; domain=.api.openai.com; HttpOnly;
Secure; SameSite=None
- _cfuvid=JUMf.2ZCm2AD6GZnKI2VzV.IBkMxyroIz775HW_M3y0-1709098666563-0.0-604800000;
path=/; domain=.api.openai.com; HttpOnly; Secure; SameSite=None
Transfer-Encoding:
- chunked
access-control-allow-origin:
- '*'
alt-svc:
- h3=":443"; ma=86400
openai-model:
- gpt-4-0125-preview
openai-organization:
- crewai-iuxna1
openai-processing-ms:
- '359'
openai-version:
- '2020-10-01'
strict-transport-security:
- max-age=15724800; includeSubDomains
x-ratelimit-limit-requests:
- '10000'
x-ratelimit-limit-tokens:
- '800000'
x-ratelimit-remaining-requests:
- '9999'
x-ratelimit-remaining-tokens:
- '799843'
x-ratelimit-reset-requests:
- 6ms
x-ratelimit-reset-tokens:
- 11ms
x-request-id:
- req_6e433280da9185055821a30ee24f4971
status:
code: 200
message: OK
- request:
body: '{"messages": [{"role": "user", "content": "The score of the title is 4."},
{"role": "system", "content": "I''m gonna convert this raw text into valid JSON."}],
"model": "gpt-3.5-turbo-0125", "tool_choice": {"type": "function", "function":
{"name": "ScoreOutput"}}, "tools": [{"type": "function", "function": {"name":
"ScoreOutput", "description": "Correctly extracted `ScoreOutput` with all the
required parameters with correct types", "parameters": {"properties": {"score":
{"title": "Score", "type": "integer"}}, "required": ["score"], "type": "object"}}}]}'
headers:
accept:
- application/json
accept-encoding:
- gzip, deflate, br
connection:
- keep-alive
content-length:
- '558'
content-type:
- application/json
host:
- api.openai.com
user-agent:
- OpenAI/Python 1.12.0
x-stainless-arch:
- arm64
x-stainless-async:
- 'false'
x-stainless-lang:
- python
x-stainless-os:
- MacOS
x-stainless-package-version:
- 1.12.0
x-stainless-runtime:
- CPython
x-stainless-runtime-version:
- 3.11.7
method: POST
uri: https://api.openai.com/v1/chat/completions
response:
body:
string: !!binary |
IUwLACD+v27+zjK9c2dMM34xD3ibkmD1//c3weUPau7zMXW9i34BJRh2afitSwNNIKCybJ2LxebQ
J8macO9OI0KTgxGymo/ZQgkjXofLp6ej94OH27fs5Wl2d9c9nftVFb68bi6ga0SQ6azIRk7RdDHw
G9lCyMnlvCIHIyeyEzuJwzAiXlnIvBBghEqNhmcGxjj1qTRsxw24ubVssmIAo0+NiGhXmxHh/fsZ
GNl6L/HGsMCALxGhl6IAI/BhaIaRtyN0AAhft8ionYQgro1Sit+MCyEcleyuDRbrVy7E7/Tw6pz7
/MN/ftzcOteOCOOTh2jqZKLhtY2aFPXEGMRQ2hQTWCNCyxf8Tz1msi9up1FNY46IYOoPwQi7LwyZ
7IsvMP8fCrD/6oC28K2k+L9U2yBkpXqZDklE2Drm94qwDTDCMEolJv7XiL5NOJ6scgaqlws1/o5y
XrQDGCXOkAw2DQAIQQJfPABIQRJqU5QQRmDnt2zaquhV35jzAEr1G4dOEPLE5za0f80AAw==
headers:
CF-Cache-Status:
- DYNAMIC
CF-RAY:
- 85c6514e2fb24ceb-GRU
Cache-Control:
- no-cache, must-revalidate
Connection:
- keep-alive
Content-Encoding:
- br
Content-Type:
- application/json
Date:
- Wed, 28 Feb 2024 05:37:47 GMT
Server:
- cloudflare
Set-Cookie:
- __cf_bm=f4rbOFlQDkHTO1CJ5zGphShVudt1Ux6oHL6ovYldFMA-1709098667-1.0-AQKGavWMfHbjQskiKVkW9ni7vtF5CaXWc1lhO55lk0VjiBNtgnRcySGXxDMoZ5bKBjcS5Aa/Hz7cOJbBq/MjmqE=;
path=/; expires=Wed, 28-Feb-24 06:07:47 GMT; domain=.api.openai.com; HttpOnly;
Secure; SameSite=None
- _cfuvid=qcKHSeH3GbeSGerERe_0w3VELIZ59QNXUWDBOUPTCT4-1709098667592-0.0-604800000;
path=/; domain=.api.openai.com; HttpOnly; Secure; SameSite=None
Transfer-Encoding:
- chunked
access-control-allow-origin:
- '*'
alt-svc:
- h3=":443"; ma=86400
openai-model:
- gpt-3.5-turbo-0125
openai-organization:
- crewai-iuxna1
openai-processing-ms:
- '137'
openai-version:
- '2020-10-01'
strict-transport-security:
- max-age=15724800; includeSubDomains
x-ratelimit-limit-requests:
- '10000'
x-ratelimit-limit-tokens:
- '1000000'
x-ratelimit-remaining-requests:
- '9999'
x-ratelimit-remaining-tokens:
- '999963'
x-ratelimit-reset-requests:
- 6ms
x-ratelimit-reset-tokens:
- 2ms
x-request-id:
- req_2779c5f91f3f47d098295e66694d6943
status:
code: 200
message: OK
- request:
body: '{"messages": [{"role": "user", "content": "You are Scorer.\nYou''re an
expert scorer, specialized in scoring titles.\n\nYour personal goal is: Score
the titleTo give my final answer use the exact following format:\n\n```\nFinal
Answer: [my expected final answer, entire content of my most complete final
answer goes here]\n```\nI MUST use these formats, my jobs depends on it!\n\nCurrent
Task: Given the score the title ''The impact of AI in the future of work'' got,
give me an integer score between 1-5 for the following title: ''Return of the
Jedi'', you MUST give it a score, use your best judgment\nYour final answer
must be: The score of the title.\nThis is the context you''re working with:\nscore=4\n\n
Begin! This is VERY important to you, your job depends on it!\n\n\n"}], "model":
"gpt-4-0125-preview", "n": 1, "stop": ["\nResult"], "stream": true, "temperature":
0.7}'
headers:
accept:
- application/json
accept-encoding:
- gzip, deflate, br
connection:
- keep-alive
content-length:
- '873'
content-type:
- application/json
cookie:
- __cf_bm=QwfZbmYv1tgZDvQYAsGPH5rNXRpLrDZsiQUY79E.GXw-1709098666-1.0-ASl39i/eqx5as/swlkaMYPeezDfFSCSwNTgXtHIPIMMmBIIbmfny4qsfHBKov+s148VW7mN8YedP0fShByF29tU=;
_cfuvid=JUMf.2ZCm2AD6GZnKI2VzV.IBkMxyroIz775HW_M3y0-1709098666563-0.0-604800000
host:
- api.openai.com
user-agent:
- OpenAI/Python 1.12.0
x-stainless-arch:
- arm64
x-stainless-async:
- 'false'
x-stainless-lang:
- python
x-stainless-os:
- MacOS
x-stainless-package-version:
- 1.12.0
x-stainless-runtime:
- CPython
x-stainless-runtime-version:
- 3.11.7
method: POST
uri: https://api.openai.com/v1/chat/completions
response:
body:
string: 'data: {"id":"chatcmpl-8x6vTZxKNq2PevrhKykpkCfhSSAxD","object":"chat.completion.chunk","created":1709098667,"model":"gpt-4-0125-preview","system_fingerprint":"fp_c8aa5a06d6","choices":[{"index":0,"delta":{"role":"assistant","content":""},"logprobs":null,"finish_reason":null}]}
data: {"id":"chatcmpl-8x6vTZxKNq2PevrhKykpkCfhSSAxD","object":"chat.completion.chunk","created":1709098667,"model":"gpt-4-0125-preview","system_fingerprint":"fp_c8aa5a06d6","choices":[{"index":0,"delta":{"content":"Final"},"logprobs":null,"finish_reason":null}]}
data: {"id":"chatcmpl-8x6vTZxKNq2PevrhKykpkCfhSSAxD","object":"chat.completion.chunk","created":1709098667,"model":"gpt-4-0125-preview","system_fingerprint":"fp_c8aa5a06d6","choices":[{"index":0,"delta":{"content":"
Answer"},"logprobs":null,"finish_reason":null}]}
data: {"id":"chatcmpl-8x6vTZxKNq2PevrhKykpkCfhSSAxD","object":"chat.completion.chunk","created":1709098667,"model":"gpt-4-0125-preview","system_fingerprint":"fp_c8aa5a06d6","choices":[{"index":0,"delta":{"content":":"},"logprobs":null,"finish_reason":null}]}
data: {"id":"chatcmpl-8x6vTZxKNq2PevrhKykpkCfhSSAxD","object":"chat.completion.chunk","created":1709098667,"model":"gpt-4-0125-preview","system_fingerprint":"fp_c8aa5a06d6","choices":[{"index":0,"delta":{"content":"
"},"logprobs":null,"finish_reason":null}]}
data: {"id":"chatcmpl-8x6vTZxKNq2PevrhKykpkCfhSSAxD","object":"chat.completion.chunk","created":1709098667,"model":"gpt-4-0125-preview","system_fingerprint":"fp_c8aa5a06d6","choices":[{"index":0,"delta":{"content":"4"},"logprobs":null,"finish_reason":null}]}
data: {"id":"chatcmpl-8x6vTZxKNq2PevrhKykpkCfhSSAxD","object":"chat.completion.chunk","created":1709098667,"model":"gpt-4-0125-preview","system_fingerprint":"fp_c8aa5a06d6","choices":[{"index":0,"delta":{},"logprobs":null,"finish_reason":"stop"}]}
data: [DONE]
'
headers:
CF-Cache-Status:
- DYNAMIC
CF-RAY:
- 85c651510f1a0183-GRU
Cache-Control:
- no-cache, must-revalidate
Connection:
- keep-alive
Content-Type:
- text/event-stream
Date:
- Wed, 28 Feb 2024 05:37:48 GMT
Server:
- cloudflare
Transfer-Encoding:
- chunked
access-control-allow-origin:
- '*'
alt-svc:
- h3=":443"; ma=86400
openai-model:
- gpt-4-0125-preview
openai-organization:
- crewai-iuxna1
openai-processing-ms:
- '345'
openai-version:
- '2020-10-01'
strict-transport-security:
- max-age=15724800; includeSubDomains
x-ratelimit-limit-requests:
- '10000'
x-ratelimit-limit-tokens:
- '800000'
x-ratelimit-remaining-requests:
- '9999'
x-ratelimit-remaining-tokens:
- '799805'
x-ratelimit-reset-requests:
- 6ms
x-ratelimit-reset-tokens:
- 14ms
x-request-id:
- req_f461e8642e0724844f72a1d6697f491a
status:
code: 200
message: OK
- request:
body: '{"messages": [{"role": "user", "content": "4"}, {"role": "system", "content":
"I''m gonna convert this raw text into valid JSON."}], "model": "gpt-3.5-turbo-0125",
"tool_choice": {"type": "function", "function": {"name": "ScoreOutput"}}, "tools":
[{"type": "function", "function": {"name": "ScoreOutput", "description": "Correctly
extracted `ScoreOutput` with all the required parameters with correct types",
"parameters": {"properties": {"score": {"title": "Score", "type": "integer"}},
"required": ["score"], "type": "object"}}}]}'
headers:
accept:
- application/json
accept-encoding:
- gzip, deflate, br
connection:
- keep-alive
content-length:
- '531'
content-type:
- application/json
cookie:
- __cf_bm=f4rbOFlQDkHTO1CJ5zGphShVudt1Ux6oHL6ovYldFMA-1709098667-1.0-AQKGavWMfHbjQskiKVkW9ni7vtF5CaXWc1lhO55lk0VjiBNtgnRcySGXxDMoZ5bKBjcS5Aa/Hz7cOJbBq/MjmqE=;
_cfuvid=qcKHSeH3GbeSGerERe_0w3VELIZ59QNXUWDBOUPTCT4-1709098667592-0.0-604800000
host:
- api.openai.com
user-agent:
- OpenAI/Python 1.12.0
x-stainless-arch:
- arm64
x-stainless-async:
- 'false'
x-stainless-lang:
- python
x-stainless-os:
- MacOS
x-stainless-package-version:
- 1.12.0
x-stainless-runtime:
- CPython
x-stainless-runtime-version:
- 3.11.7
method: POST
uri: https://api.openai.com/v1/chat/completions
response:
body:
string: !!binary |
IUwLACD25eb3NNWbrcGj130xReNnIyT+9zfB5Q9q7vMxdb2LfgElGHZp+K1LA00goLJsnYvF5tAn
yZpw784jwqwBI9TT0tVC82Cw7i3fTrbDpP86dXxTp8PpevM6O+u+TI84fI8IqpqPascphi4G/kxJ
CDm5nDdqwCjpx8N4OOj1BsQrQjUjDkaYaBdkYTdwralUECdpl5s7VbN6ZMHoxyMi2tVmRHj/fgZG
sd9LvDEsMOBLRDCKj8AIpbUz60rp4ANA+LpFRrLlnLjmlOJ5XXIuHJXsrg0W69eS87yVffNpt/OT
5PJNjFaDp0q/vIrbTCYaXtvoSVFPjEEMpU0xgTUiyFLwP/VSKzN6aJ1uXY6IYOoPwQi7X9hamdEv
WOcABdiDOqAt/CkpHpZqG7iaaKMqm0SErWPyK8I2wAjWKS0mPnhEfyYct1Y5A22U0C53ajGSFowG
2ZAMNg0ACN0EvngAkILBwJuihDACO/l4Jicjo83MnAcw1vmgl3R75bBTxvAOngED
headers:
CF-Cache-Status:
- DYNAMIC
CF-RAY:
- 85c65155ca314ceb-GRU
Cache-Control:
- no-cache, must-revalidate
Connection:
- keep-alive
Content-Encoding:
- br
Content-Type:
- application/json
Date:
- Wed, 28 Feb 2024 05:37:49 GMT
Server:
- cloudflare
Transfer-Encoding:
- chunked
access-control-allow-origin:
- '*'
alt-svc:
- h3=":443"; ma=86400
openai-model:
- gpt-3.5-turbo-0125
openai-organization:
- crewai-iuxna1
openai-processing-ms:
- '165'
openai-version:
- '2020-10-01'
strict-transport-security:
- max-age=15724800; includeSubDomains
x-ratelimit-limit-requests:
- '10000'
x-ratelimit-limit-tokens:
- '1000000'
x-ratelimit-remaining-requests:
- '9999'
x-ratelimit-remaining-tokens:
- '999968'
x-ratelimit-reset-requests:
- 6ms
x-ratelimit-reset-tokens:
- 1ms
x-request-id:
- req_5ac6ab3793a274557791551eb014de64
status:
code: 200
message: OK
version: 1