Files
crewAI/lib/crewai/tests/cassettes/test_guardrail_emits_events.yaml
2025-11-05 11:54:23 -05:00

720 lines
30 KiB
YAML

interactions:
- request:
body: '{"messages":[{"role":"system","content":"You are Test Agent. Test Backstory\nYour
personal goal is: Test Goal\nTo give my best complete final answer to the task
respond using 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: Gather information
about available books on the First World War\n\nThis is the expected criteria
for your final answer: A list of available books on the First World War\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-4.1-mini"}'
headers:
accept:
- application/json
accept-encoding:
- gzip, deflate, zstd
connection:
- keep-alive
content-length:
- '866'
content-type:
- application/json
host:
- api.openai.com
user-REDACTED:
- 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-read-timeout:
- '600'
x-stainless-retry-count:
- '0'
x-stainless-runtime:
- CPython
x-stainless-runtime-version:
- 3.12.9
method: POST
uri: https://api.openai.com/v1/chat/completions
response:
body:
string: !!binary |
H4sIAAAAAAAAA4xWTW8bRwy9+1cQe+ghkATLcexYN+XDTto4MBKnRtsUBjVL7bKendlyuHKUIP+9
4Ozqw40L9GJDyyHnke+Rw28HAAWXxQwKV6O6pvXjl7/9dj19vfg0f/r3q7A4S/p0/qt8rbvDV7+7
q2JkHnHxFzndeE1cbFpPyjH0ZieEShZ1enpy9PTZ9OT0LBuaWJI3t6rV8fFkOm448Pjo8OjZ+PB4
PD0e3OvIjlIxgz8OAAC+5b8GNJT0pZjB4WjzpaGUsKJitj0EUEj09qXAlDgpBi1GO6OLQSlk7Nd1
7KpaZ/AWQrwHhwEqXhEgVJYAYEj3JJ/DOQf0MM+/ZvA5f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IdllAY9qHSOks0NO60Z0SC065rS5vkyfPdckl/v
vWwb2eYjavNkBJ4XgsI0SDcGEy60HtUuTJA6VwMmmDf41Tr+BYqV8Sd4HxeeeqeLGCtP8MLCTqwW
hr4V6lsWSl6RJAIxmVt1bQLY7OTVkJ2uW8qtn98MtFOPPr+jfqZvX6IFqnpaMvnNq2T10rhj2KJv
X51Bg5Qm+wuF0LJLaFtN6LzfM2AIUfPgz6vMn4Pl+3Z58bFqJS7Sv1wLGz6pvhXCFIMtKjbUi2z9
fgDwZ16Sugd7T9FKbFq91XhH+brp6bAkFbvlbGc9Pp0OVo2Kfmc4Od4YHgS87UuW9vaswqGrqdy5
7pYy7EqOe4aDvbR/hPNY7D51DtX/Cb8zOEetUnnbCpXsHqa8OyZky+t/HduWOQMuki0Djm6VSYyK
kpbY+X6jLFJu0Nslh4qkFe7XymV7e+yOnj+bLp+fHBUH3w/+AQAA//8DAGS8DqNlCwAA
headers:
CF-RAY:
- 999cebab4da2efa9-EWR
Connection:
- keep-alive
Content-Encoding:
- gzip
Content-Type:
- application/json
Date:
- Wed, 05 Nov 2025 14:08:06 GMT
Server:
- cloudflare
Set-Cookie:
- __cf_bm=REDACTED;
path=/; expires=Wed, 05-Nov-25 14:38:06 GMT; domain=.api.openai.com; HttpOnly;
Secure; SameSite=None
- _cfuvid=REDACTED;
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:
- user-REDACTED
openai-processing-ms:
- '7170'
openai-project:
- proj_REDACTED
openai-version:
- '2020-10-01'
x-envoy-upstream-service-time:
- '7339'
x-openai-proxy-wasm:
- v0.1
x-ratelimit-limit-requests:
- '500'
x-ratelimit-limit-tokens:
- '200000'
x-ratelimit-remaining-requests:
- '499'
x-ratelimit-remaining-tokens:
- '199808'
x-ratelimit-reset-requests:
- 120ms
x-ratelimit-reset-tokens:
- 57ms
x-request-id:
- req_REDACTED
status:
code: 200
message: OK
- request:
body: "{\"messages\":[{\"role\":\"system\",\"content\":\"You are Guardrail Agent.
You are a expert at validating the output of a task. By providing effective
feedback if the output is not valid.\\nYour personal goal is: Validate the output
of the task\\n\\nTo give my best complete final answer to the task respond using
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\":\"\\n Ensure the following task
result complies with the given guardrail.\\n\\n Task result:\\n Here
is a list of available books on the First World War:\\n\\n1. **The Guns of August**
by Barbara W. Tuchman \\n - A classic narrative history focusing on the outbreak
and first month of World War I.\\n\\n2. **A World Undone: The Story of the Great
War, 1914 to 1918** by G.J. Meyer \\n - A comprehensive, detailed history
of the entire First World War, covering military, political, and social aspects.\\n\\n3.
**The First World War** by John Keegan \\n - An authoritative overview from
one of the leading military historians, focusing on the strategic, operational,
and human aspects of the war.\\n\\n4. **The Sleepwalkers: How Europe Went to
War in 1914** by Christopher Clark \\n - Explores the complex causes and
diplomatic tensions that led to the outbreak of World War I.\\n\\n5. **To End
All Wars: A Story of Loyalty and Rebellion, 1914-1918** by Adam Hochschild \\n
\ - Examines the personal and societal impacts of the war, including dissent
and activism.\\n\\n6. **World War I: The Definitive Visual History** by R.G.
Grant \\n - A richly illustrated volume detailing the war through maps, photographs,
and timelines.\\n\\n7. **Paris 1919: Six Months That Changed the World** by
Margaret MacMillan \\n - Focuses on the peace conference after World War
I and its lasting impact on global politics.\\n\\n8. **The Pity of War: Explaining
World War I** by Niall Ferguson \\n - A critical analysis challenging many
conventional views about the war.\\n\\n9. **The Great War and Modern Memory**
by Paul Fussell \\n - Examines the cultural memory and literature of World
War I.\\n\\n10. **Trench Warfare 1914-1918: The Live and Let Live System** by
Tony Ashworth \\n - Investigates the everyday realities and informal truces
in the trenches.\\n\\nThese books are widely available through bookstores, libraries,
and online platforms such as Amazon, Barnes & Noble, and Google Books. They
represent a diverse range of perspectives and types of coverage on the First
World War, from detailed battlefield histories to cultural and political analyses.\\n\\n
\ Guardrail:\\n Ensure the authors are from Italy\\n\\n Your
task:\\n - Confirm if the Task result complies with the guardrail.\\n
\ - If not, provide clear feedback explaining what is wrong (e.g., by
how much it violates the rule, or what specific part fails).\\n - Focus
only on identifying issues \u2014 do not propose corrections.\\n - If
the Task result complies with the guardrail, saying that is valid\\n \"}],\"model\":\"gpt-4.1-mini\",\"response_format\":{\"type\":\"json_schema\",\"json_schema\":{\"schema\":{\"properties\":{\"valid\":{\"description\":\"Whether
the task output complies with the guardrail\",\"title\":\"Valid\",\"type\":\"boolean\"},\"feedback\":{\"anyOf\":[{\"type\":\"string\"},{\"type\":\"null\"}],\"description\":\"A
feedback about the task output if it is not valid\",\"title\":\"Feedback\"}},\"required\":[\"valid\",\"feedback\"],\"title\":\"LLMGuardrailResult\",\"type\":\"object\",\"additionalProperties\":false},\"name\":\"LLMGuardrailResult\",\"strict\":true}},\"stream\":false}"
headers:
accept:
- application/json
accept-encoding:
- gzip, deflate, zstd
connection:
- keep-alive
content-length:
- '3712'
content-type:
- application/json
cookie:
- __cf_bm=REDACTED;
_cfuvid=REDACTED
host:
- api.openai.com
user-REDACTED:
- OpenAI/Python 1.109.1
x-stainless-arch:
- arm64
x-stainless-async:
- 'false'
x-stainless-helper-method:
- chat.completions.parse
x-stainless-lang:
- python
x-stainless-os:
- MacOS
x-stainless-package-version:
- 1.109.1
x-stainless-read-timeout:
- '600'
x-stainless-retry-count:
- '0'
x-stainless-runtime:
- CPython
x-stainless-runtime-version:
- 3.12.9
method: POST
uri: https://api.openai.com/v1/chat/completions
response:
body:
string: !!binary |
H4sIAAAAAAAAA4yTW28aMRCF3/kVIz+10rICAgTxliCFJi1RVVFFUYnQYM+u3XjtzdhLSiP+e7Ub
wqUXqS/74G/O7BzP8UsLQBglxiCkxiiL0rYn9/fzUbdzvX7+qePXp4vO5dmny7vJ2c3UshNJrfCr
7yTjmyqVvigtReN3WDJhpLpr93zYOxt0h6NhAwqvyNayvIztftptF8aZdq/TG7Q7/Xa3v5NrbyQF
MYZvLQCAl+ZbD+oU/RBj6CRvJwWFgDmJ8b4IQLC39YnAEEyI6KJIDlB6F8k1s78sxBqtUQsxztAG
ShYiI1IrlI8LMV6IW+8IfAZRE2AVtecA1oRICpAJMvYFXEe0mxTmmiCvkBWjscD0VBmmAFFjPJGv
jmUJrKoIaO0el+zXRpGCd5fIK2SEuxTmldQFugSm6U0KM9oQJ3DjtYOPRHkNJppNiL7UxDCxyI8J
XCgs4IOXOkhtrErgSzpNYcroYgIz5ByZIsxQzoy1dY9bUw9yRZxXwbsEPmNl4aoKgaxNYO7dBi6C
fvYc9fvGvvOxsWHQ1f5NgLXxFmNj+/g2dukgu0kXYnu8C6asClgHwlXWHgF0zkesA9Wk4GFHtvu9
W5+X7FfhN6nIjDNBL5kweFfvuL4W0dBtC+ChyVd1EhlRsi/KuIz+kZrfnZ/v8iUOuT7Q0WgHo49o
j84Hb+Ck31JRRGPDUUKFRKlJHaSHOGOljD8CrSPXf07zt96vzo3L/6f9AUhJZSS1LJmUkaeOD2VM
9bP/V9n+lpuBRSBeG0nLaIjrTSjKsLKvb1GETYhULDPjcuKSzeuDzMplX/ZGg242GvZEa9v6BQAA
//8DAABSQ/afBAAA
headers:
CF-RAY:
- 999cebd9a9ceefa9-EWR
Connection:
- keep-alive
Content-Encoding:
- gzip
Content-Type:
- application/json
Date:
- Wed, 05 Nov 2025 14:08:08 GMT
Server:
- cloudflare
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:
- user-REDACTED
openai-processing-ms:
- '1302'
openai-project:
- proj_REDACTED
openai-version:
- '2020-10-01'
x-envoy-upstream-service-time:
- '1445'
x-openai-proxy-wasm:
- v0.1
x-ratelimit-limit-requests:
- '500'
x-ratelimit-limit-tokens:
- '200000'
x-ratelimit-remaining-requests:
- '499'
x-ratelimit-remaining-tokens:
- '199232'
x-ratelimit-reset-requests:
- 120ms
x-ratelimit-reset-tokens:
- 230ms
x-request-id:
- req_REDACTED
status:
code: 200
message: OK
- request:
body: '{"messages":[{"role":"system","content":"You are Test Agent. Test Backstory\nYour
personal goal is: Test Goal\nTo give my best complete final answer to the task
respond using 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: Gather information
about available books on the First World War\n\nThis is the expected criteria
for your final answer: A list of available books on the First World War\nyou
MUST return the actual complete content as the final answer, not a summary.\n\nThis
is the context you''re working with:\n### Previous attempt failed validation:
None of the authors listed are from Italy. The guardrail requires that the authors
be from Italy, but all authors provided (Barbara W. Tuchman, G.J. Meyer, John
Keegan, Christopher Clark, Adam Hochschild, R.G. Grant, Margaret MacMillan,
Niall Ferguson, Paul Fussell, Tony Ashworth) are not Italian. This violates
the guardrail completely.\n\n\n### Previous result:\nHere is a list of available
books on the First World War:\n\n1. **The Guns of August** by Barbara W. Tuchman \n -
A classic narrative history focusing on the outbreak and first month of World
War I.\n\n2. **A World Undone: The Story of the Great War, 1914 to 1918** by
G.J. Meyer \n - A comprehensive, detailed history of the entire First World
War, covering military, political, and social aspects.\n\n3. **The First World
War** by John Keegan \n - An authoritative overview from one of the leading
military historians, focusing on the strategic, operational, and human aspects
of the war.\n\n4. **The Sleepwalkers: How Europe Went to War in 1914** by Christopher
Clark \n - Explores the complex causes and diplomatic tensions that led to
the outbreak of World War I.\n\n5. **To End All Wars: A Story of Loyalty and
Rebellion, 1914-1918** by Adam Hochschild \n - Examines the personal and
societal impacts of the war, including dissent and activism.\n\n6. **World War
I: The Definitive Visual History** by R.G. Grant \n - A richly illustrated
volume detailing the war through maps, photographs, and timelines.\n\n7. **Paris
1919: Six Months That Changed the World** by Margaret MacMillan \n - Focuses
on the peace conference after World War I and its lasting impact on global politics.\n\n8.
**The Pity of War: Explaining World War I** by Niall Ferguson \n - A critical
analysis challenging many conventional views about the war.\n\n9. **The Great
War and Modern Memory** by Paul Fussell \n - Examines the cultural memory
and literature of World War I.\n\n10. **Trench Warfare 1914-1918: The Live and
Let Live System** by Tony Ashworth \n - Investigates the everyday realities
and informal truces in the trenches.\n\nThese books are widely available through
bookstores, libraries, and online platforms such as Amazon, Barnes & Noble,
and Google Books. They represent a diverse range of perspectives and types of
coverage on the First World War, from detailed battlefield histories to cultural
and political analyses.\n\n\nTry again, making sure to address the validation
error.\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.1-mini"}'
headers:
accept:
- application/json
accept-encoding:
- gzip, deflate, zstd
connection:
- keep-alive
content-length:
- '3427'
content-type:
- application/json
cookie:
- __cf_bm=REDACTED;
_cfuvid=REDACTED
host:
- api.openai.com
user-REDACTED:
- 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-read-timeout:
- '600'
x-stainless-retry-count:
- '0'
x-stainless-runtime:
- CPython
x-stainless-runtime-version:
- 3.12.9
method: POST
uri: https://api.openai.com/v1/chat/completions
response:
body:
string: !!binary |
H4sIAAAAAAAAAwAAAP//jFbbjttGDH3fryD00jSwjdjZW/22SboXYIMGyabpoikW9AwlsR0NBc7I
rhME6G/09/IlxYws27vdFH0xLHFI8ZA8Z/j5AKBgW8yhMDVG07Ru/PL29ubsZ3P9/jpezeynS/nl
0Ldy096+Wty2xSh5yOJ3MnHwmhhpWkeRxfdmo4SRUtTpyfHs+dH0+PQ0Gxqx5JJb1cbx4WQ6btjz
ePZsdjR+djieHm7ca2FDoZjDrwcAAJ/zb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LsfRmfw6Ws4CrCW0Ln1vABB00781YJ4S35TxTjbpbf0pIDx3Cvoy1q
ZMMtZsib9q9QYcWxBk8rYB+SvAewiqs8Ag2gmpqX6EApUHrolT7zLnfd0gJjr183NYXhWkOlvasO
jUoI0ODvotuE8sEomtlj0FLDBhwvFHWPUZk9IN6xp3uuoL1ya4DQpbwCXL14N+GYHS+FWscTjpM0
OGtoVZZsKd+r5CObXV1Is1xltso3xE/RV6nruSaZGzmfLa16qd+Ken8BJPYLLFTQkuY5kPFWMEGp
3MxfGC6G9de//g571+pwW25VfrK/oCiVXcC0JfnOuT1DkpOY25xXo982li/bZchJ1aoswgPXomTP
ob5TwiA+LT4hSltk65cDgN/y0tXd26OKVqVp412UPyh/7uT5cR+v2C17O+vhyWCNEtHtDNPZdDZ6
JOJdfz+HvcWtMGhqsjvf3ZaHnWXZMxzs4f53Po/F7rGzr/5P+J3BGGoj2btWybK5j3l3TCltw986
tq1zTrgIpEs2dBeZNPXCUomd61fUIqxDpOauZF+Rtsr9nlq2d4dmdno0LU+PZ8XBl4N/AAAA//8D
AL4nNR22CwAA
headers:
CF-RAY:
- 999cebe33b4eefa9-EWR
Connection:
- keep-alive
Content-Encoding:
- gzip
Content-Type:
- application/json
Date:
- Wed, 05 Nov 2025 14:08:15 GMT
Server:
- cloudflare
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:
- user-REDACTED
openai-processing-ms:
- '6635'
openai-project:
- proj_REDACTED
openai-version:
- '2020-10-01'
x-envoy-upstream-service-time:
- '6867'
x-openai-proxy-wasm:
- v0.1
x-ratelimit-limit-requests:
- '500'
x-ratelimit-limit-tokens:
- '200000'
x-ratelimit-remaining-requests:
- '499'
x-ratelimit-remaining-tokens:
- '199178'
x-ratelimit-reset-requests:
- 120ms
x-ratelimit-reset-tokens:
- 246ms
x-request-id:
- req_REDACTED
status:
code: 200
message: OK
- request:
body: "{\"messages\":[{\"role\":\"system\",\"content\":\"You are Guardrail Agent.
You are a expert at validating the output of a task. By providing effective
feedback if the output is not valid.\\nYour personal goal is: Validate the output
of the task\\n\\nTo give my best complete final answer to the task respond using
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\":\"\\n Ensure the following task
result complies with the given guardrail.\\n\\n Task result:\\n Here
is a list of available books on the First World War authored by Italian writers:\\n\\n1.
**La Grande Guerra (The Great War)** by Emilio Lussu \\n - An autobiographical
account by an Italian soldier, highlighting the experiences and hardships endured
by Italian troops during World War I.\\n\\n2. **Caporetto 1917: La disfatta
degli italiani (Caporetto 1917: The Defeat of the Italians)** by Paolo Gaspari
\ \\n - A detailed study of the Italian defeat at the Battle of Caporetto,
including tactical analysis and the impact on Italian military morale.\\n\\n3.
**La guerra italiana 1915-1918 (The Italian War 1915-1918)** by Alessandro Barbero
\ \\n - A comprehensive history of Italy's role in the First World War, addressing
military, political, and social aspects.\\n\\n4. **Il Piave mormorava: Storia
del fronte italiano nella Grande guerra (The Piave Murmured: History of the
Italian Front in the Great War)** by Mario Isnenghi \\n - Focuses on the
Italian front, covering the battles, strategies, and the soldiers' lives throughout
the conflict.\\n\\n5. **Un anno sull\u2019altopiano (One Year on the Plateau)**
by Emilio Lussu \\n - Offers a vivid personal narrative of life in the trenches
on the Italian front, underscoring the psychological and physical toll of the
war.\\n\\n6. **Guerra e memoria: La Prima guerra mondiale in Italia (War and
Memory: The First World War in Italy)** edited by G. Contini and R. De Felice
\ \\n - A collection of essays analyzing the cultural memory and lasting impact
of the First World War in Italian society.\\n\\n7. **La Grande Guerra: Come
fu davvero (The Great War: How It Really Was)** by Andrea Renzetti \\n -
Revisits the Italian participation in the war with new insights drawn from archival
research and historical debate.\\n\\nThese books are available across major
Italian bookstores, academic libraries, and through online Italian book retailers
such as IBS.it and Hoepli.it. They provide authentic Italian perspectives on
the First World War, ranging from frontline narratives and military analyses
to broader socio-political reflections on Italy\u2019s experience during 1915-1918.\\n\\n
\ Guardrail:\\n Ensure the authors are from Italy\\n\\n Your
task:\\n - Confirm if the Task result complies with the guardrail.\\n
\ - If not, provide clear feedback explaining what is wrong (e.g., by
how much it violates the rule, or what specific part fails).\\n - Focus
only on identifying issues \u2014 do not propose corrections.\\n - If
the Task result complies with the guardrail, saying that is valid\\n \"}],\"model\":\"gpt-4.1-mini\",\"response_format\":{\"type\":\"json_schema\",\"json_schema\":{\"schema\":{\"properties\":{\"valid\":{\"description\":\"Whether
the task output complies with the guardrail\",\"title\":\"Valid\",\"type\":\"boolean\"},\"feedback\":{\"anyOf\":[{\"type\":\"string\"},{\"type\":\"null\"}],\"description\":\"A
feedback about the task output if it is not valid\",\"title\":\"Feedback\"}},\"required\":[\"valid\",\"feedback\"],\"title\":\"LLMGuardrailResult\",\"type\":\"object\",\"additionalProperties\":false},\"name\":\"LLMGuardrailResult\",\"strict\":true}},\"stream\":false}"
headers:
accept:
- application/json
accept-encoding:
- gzip, deflate, zstd
connection:
- keep-alive
content-length:
- '3792'
content-type:
- application/json
cookie:
- __cf_bm=REDACTED;
_cfuvid=REDACTED
host:
- api.openai.com
user-REDACTED:
- OpenAI/Python 1.109.1
x-stainless-arch:
- arm64
x-stainless-async:
- 'false'
x-stainless-helper-method:
- chat.completions.parse
x-stainless-lang:
- python
x-stainless-os:
- MacOS
x-stainless-package-version:
- 1.109.1
x-stainless-read-timeout:
- '600'
x-stainless-retry-count:
- '0'
x-stainless-runtime:
- CPython
x-stainless-runtime-version:
- 3.12.9
method: POST
uri: https://api.openai.com/v1/chat/completions
response:
body:
string: !!binary |
H4sIAAAAAAAAAwAAAP//jJJBj9MwEIXv+RXWnJNVE5K2mysckBBCVAipoqvItSepqWNb9mRZqPrf
kdNuk4VF4uKDv3nj98ZzShgDJaFmIA6cRO909na7/fL+x+BEvt20T18X+erzRlS/NseP7z59gDQq
7P47CnpW3QnbO42krLlg4ZETxq75alm8qfLlfTWC3krUUdY5ysq7POuVUVmxKKpsUWZ5eZUfrBIY
oGbfEsYYO41nNGokPkHNFunzTY8h8A6hvhUxBt7qeAM8BBWIG4J0gsIaQjN6P+3gkWsld1CTHzDd
QYso91wcd1CbQevzXOixHQKP7iOaAW6MJR7Tj5YfruR8M6lt57zdhz+k0CqjwqHxyIM10VAg62Ck
54Sxh3EYw4t84LztHTVkjzg+t1pVl34wfcJE76+MLHE9E63L9JV2jUTiSofZNEFwcUA5SafR80Eq
OwPJLPTfZl7rfQmuTPc/7ScgBDpC2TiPUomXgacyj3FF/1V2G/JoGAL6RyWwIYU+foTElg/6sjcQ
fgbCvmmV6dA7ry7L07qmFMW6ytv1soDknPwGAAD//wMAkXeHhksDAAA=
headers:
CF-RAY:
- 999cec0eced2efa9-EWR
Connection:
- keep-alive
Content-Encoding:
- gzip
Content-Type:
- application/json
Date:
- Wed, 05 Nov 2025 14:08:15 GMT
Server:
- cloudflare
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:
- user-REDACTED
openai-processing-ms:
- '450'
openai-project:
- proj_REDACTED
openai-version:
- '2020-10-01'
x-envoy-upstream-service-time:
- '640'
x-openai-proxy-wasm:
- v0.1
x-ratelimit-limit-requests:
- '500'
x-ratelimit-limit-tokens:
- '200000'
x-ratelimit-remaining-requests:
- '499'
x-ratelimit-remaining-tokens:
- '199209'
x-ratelimit-reset-requests:
- 120ms
x-ratelimit-reset-tokens:
- 237ms
x-request-id:
- req_REDACTED
status:
code: 200
message: OK
- request:
body: '{"messages":[{"role":"system","content":"You are Test Agent. Test Backstory\nYour
personal goal is: Test Goal\nTo give my best complete final answer to the task
respond using 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: Test task\n\nThis
is the expected criteria for your final answer: Output\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-4.1-mini"}'
headers:
accept:
- application/json
accept-encoding:
- gzip, deflate, zstd
connection:
- keep-alive
content-length:
- '770'
content-type:
- application/json
cookie:
- __cf_bm=REDACTED;
_cfuvid=REDACTED
host:
- api.openai.com
user-REDACTED:
- 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-read-timeout:
- '600'
x-stainless-retry-count:
- '0'
x-stainless-runtime:
- CPython
x-stainless-runtime-version:
- 3.12.9
method: POST
uri: https://api.openai.com/v1/chat/completions
response:
body:
string: !!binary |
H4sIAAAAAAAAAwAAAP//jFLBatwwEL37Kwad12Ht2JvEt1IoKT2E0O0htMEo8thWK2uENM62hP33
Iu9m7W1T6EWgefOe3pvRSwIgdCMqEKqXrAZn0vcPD9vbO7+71dtPptjyoML4mbi/b7+4e7GKDHr6
jopfWReKBmeQNdkDrDxKxqiaXW3yyzLb3JQTMFCDJtI6x2lxkaWDtjrN13mZros0K470nrTCICr4
mgAAvExnNGob/CkqWK9eKwOGIDsU1akJQHgysSJkCDqwtCxWM6jIMtrJ+7anseu5go9gaQdKWuj0
M4KELgYAacMO/Tf7QVtp4N10q+BuZDeeSXpsxyBjLjsaswCktcQyzmUK83hE9if7hjrn6Sn8QRWt
tjr0tUcZyEargcmJCd0nAI/TmMaz5MJ5GhzXTD9wei4rLw96Yl7PAi2OIBNLs6hvrlZv6NUNstQm
LAYtlFQ9NjN13oocG00LIFmk/tvNW9qH5Np2/yM/A0qhY2xq57HR6jzx3OYx/t5/tZ2mPBkWAf2z
VlizRh830WArR3PYvwi/AuNQt9p26J3Xh3/VurpQ+XWZtdebXCT75DcAAAD//wMAc4CvHGYDAAA=
headers:
CF-RAY:
- 999cec1339dbefa9-EWR
Connection:
- keep-alive
Content-Encoding:
- gzip
Content-Type:
- application/json
Date:
- Wed, 05 Nov 2025 14:08:16 GMT
Server:
- cloudflare
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:
- user-REDACTED
openai-processing-ms:
- '529'
openai-project:
- proj_REDACTED
openai-version:
- '2020-10-01'
x-envoy-upstream-service-time:
- '546'
x-openai-proxy-wasm:
- v0.1
x-ratelimit-limit-requests:
- '500'
x-ratelimit-limit-tokens:
- '200000'
x-ratelimit-remaining-requests:
- '499'
x-ratelimit-remaining-tokens:
- '199832'
x-ratelimit-reset-requests:
- 120ms
x-ratelimit-reset-tokens:
- 50ms
x-request-id:
- req_REDACTED
status:
code: 200
message: OK
version: 1