mirror of
https://github.com/crewAIInc/crewAI.git
synced 2026-04-30 23:02:50 +00:00
Some checks failed
CodeQL Advanced / Analyze (actions) (push) Has been cancelled
CodeQL Advanced / Analyze (python) (push) Has been cancelled
Check Documentation Broken Links / Check broken links (push) Has been cancelled
Build uv cache / build-cache (3.10) (push) Has been cancelled
Build uv cache / build-cache (3.11) (push) Has been cancelled
Build uv cache / build-cache (3.12) (push) Has been cancelled
Build uv cache / build-cache (3.13) (push) Has been cancelled
Mark stale issues and pull requests / stale (push) Has been cancelled
* fix: map output_pydantic/output_json to native structured output * test: add crew+tools+structured output integration test for Gemini * fix: re-record stale cassette for test_crew_testing_function * fix: re-record remaining stale cassettes for native structured output * fix: enable native structured output for lite agent and fix mypy errors
686 lines
30 KiB
YAML
686 lines
30 KiB
YAML
interactions:
|
|
- request:
|
|
body: '{"messages":[{"role":"system","content":"You are Test Agent. Test Backstory\nYour
|
|
personal goal is: Test Goal"},{"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\nProvide your complete response:"}],"model":"gpt-4.1-mini"}'
|
|
headers:
|
|
User-Agent:
|
|
- X-USER-AGENT-XXX
|
|
accept:
|
|
- application/json
|
|
accept-encoding:
|
|
- ACCEPT-ENCODING-XXX
|
|
authorization:
|
|
- AUTHORIZATION-XXX
|
|
connection:
|
|
- keep-alive
|
|
content-length:
|
|
- '465'
|
|
content-type:
|
|
- application/json
|
|
host:
|
|
- api.openai.com
|
|
x-stainless-arch:
|
|
- X-STAINLESS-ARCH-XXX
|
|
x-stainless-async:
|
|
- 'false'
|
|
x-stainless-lang:
|
|
- python
|
|
x-stainless-os:
|
|
- X-STAINLESS-OS-XXX
|
|
x-stainless-package-version:
|
|
- 1.83.0
|
|
x-stainless-read-timeout:
|
|
- X-STAINLESS-READ-TIMEOUT-XXX
|
|
x-stainless-retry-count:
|
|
- '0'
|
|
x-stainless-runtime:
|
|
- CPython
|
|
x-stainless-runtime-version:
|
|
- 3.13.12
|
|
method: POST
|
|
uri: https://api.openai.com/v1/chat/completions
|
|
response:
|
|
body:
|
|
string: "{\n \"id\": \"chatcmpl-DDGADaYtAf39e4orQQyF7DAeZbQLX\",\n \"object\":
|
|
\"chat.completion\",\n \"created\": 1772052769,\n \"model\": \"gpt-4.1-mini-2025-04-14\",\n
|
|
\ \"choices\": [\n {\n \"index\": 0,\n \"message\": {\n \"role\":
|
|
\"assistant\",\n \"content\": \"Here is a list of available books on
|
|
the First World War:\\n\\n1. \\\"The Guns of August\\\" by Barbara W. Tuchman\\n2.
|
|
\\\"A World Undone: The Story of the Great War, 1914 to 1918\\\" by G.J. Meyer\\n3.
|
|
\\\"The First World War\\\" by John Keegan\\n4. \\\"The Sleepwalkers: How
|
|
Europe Went to War in 1914\\\" by Christopher Clark\\n5. \\\"To End All Wars:
|
|
A Story of Loyalty and Rebellion, 1914-1918\\\" by Adam Hochschild\\n6. \\\"The
|
|
Pity of War\\\" by Niall Ferguson\\n7. \\\"Catastrophe 1914: Europe Goes to
|
|
War\\\" by Max Hastings\\n8. \\\"World War I: The Definitive Visual History\\\"
|
|
by R.G. Grant\\n9. \\\"The War That Ended Peace: The Road to 1914\\\" by Margaret
|
|
MacMillan\\n10. \\\"Paris 1919: Six Months That Changed the World\\\" by Margaret
|
|
MacMillan\\n\\nThese books cover various aspects of the First World War, including
|
|
its causes, key battles, political consequences, and personal experiences.\",\n
|
|
\ \"refusal\": null,\n \"annotations\": []\n },\n \"logprobs\":
|
|
null,\n \"finish_reason\": \"stop\"\n }\n ],\n \"usage\": {\n \"prompt_tokens\":
|
|
84,\n \"completion_tokens\": 240,\n \"total_tokens\": 324,\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_a391f2cee0\"\n}\n"
|
|
headers:
|
|
CF-RAY:
|
|
- CF-RAY-XXX
|
|
Connection:
|
|
- keep-alive
|
|
Content-Type:
|
|
- application/json
|
|
Date:
|
|
- Wed, 25 Feb 2026 20:52:52 GMT
|
|
Server:
|
|
- cloudflare
|
|
Strict-Transport-Security:
|
|
- STS-XXX
|
|
Transfer-Encoding:
|
|
- chunked
|
|
X-Content-Type-Options:
|
|
- X-CONTENT-TYPE-XXX
|
|
access-control-expose-headers:
|
|
- ACCESS-CONTROL-XXX
|
|
alt-svc:
|
|
- h3=":443"; ma=86400
|
|
cf-cache-status:
|
|
- DYNAMIC
|
|
openai-organization:
|
|
- OPENAI-ORG-XXX
|
|
openai-processing-ms:
|
|
- '3002'
|
|
openai-project:
|
|
- OPENAI-PROJECT-XXX
|
|
openai-version:
|
|
- '2020-10-01'
|
|
set-cookie:
|
|
- SET-COOKIE-XXX
|
|
x-openai-proxy-wasm:
|
|
- v0.1
|
|
x-ratelimit-limit-requests:
|
|
- X-RATELIMIT-LIMIT-REQUESTS-XXX
|
|
x-ratelimit-limit-tokens:
|
|
- X-RATELIMIT-LIMIT-TOKENS-XXX
|
|
x-ratelimit-remaining-requests:
|
|
- X-RATELIMIT-REMAINING-REQUESTS-XXX
|
|
x-ratelimit-remaining-tokens:
|
|
- X-RATELIMIT-REMAINING-TOKENS-XXX
|
|
x-ratelimit-reset-requests:
|
|
- X-RATELIMIT-RESET-REQUESTS-XXX
|
|
x-ratelimit-reset-tokens:
|
|
- X-RATELIMIT-RESET-TOKENS-XXX
|
|
x-request-id:
|
|
- X-REQUEST-ID-XXX
|
|
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\"},{\"role\":\"user\",\"content\":\"\\nCurrent Task: \\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\\n2. \\\"A World Undone: The
|
|
Story of the Great War, 1914 to 1918\\\" by G.J. Meyer\\n3. \\\"The First World
|
|
War\\\" by John Keegan\\n4. \\\"The Sleepwalkers: How Europe Went to War in
|
|
1914\\\" by Christopher Clark\\n5. \\\"To End All Wars: A Story of Loyalty and
|
|
Rebellion, 1914-1918\\\" by Adam Hochschild\\n6. \\\"The Pity of War\\\" by
|
|
Niall Ferguson\\n7. \\\"Catastrophe 1914: Europe Goes to War\\\" by Max Hastings\\n8.
|
|
\\\"World War I: The Definitive Visual History\\\" by R.G. Grant\\n9. \\\"The
|
|
War That Ended Peace: The Road to 1914\\\" by Margaret MacMillan\\n10. \\\"Paris
|
|
1919: Six Months That Changed the World\\\" by Margaret MacMillan\\n\\nThese
|
|
books cover various aspects of the First World War, including its causes, key
|
|
battles, political consequences, and personal experiences.\\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 \\n\\nProvide your complete
|
|
response:\"}],\"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:
|
|
User-Agent:
|
|
- X-USER-AGENT-XXX
|
|
accept:
|
|
- application/json
|
|
accept-encoding:
|
|
- ACCEPT-ENCODING-XXX
|
|
authorization:
|
|
- AUTHORIZATION-XXX
|
|
connection:
|
|
- keep-alive
|
|
content-length:
|
|
- '2271'
|
|
content-type:
|
|
- application/json
|
|
cookie:
|
|
- COOKIE-XXX
|
|
host:
|
|
- api.openai.com
|
|
x-stainless-arch:
|
|
- X-STAINLESS-ARCH-XXX
|
|
x-stainless-async:
|
|
- 'false'
|
|
x-stainless-helper-method:
|
|
- beta.chat.completions.parse
|
|
x-stainless-lang:
|
|
- python
|
|
x-stainless-os:
|
|
- X-STAINLESS-OS-XXX
|
|
x-stainless-package-version:
|
|
- 1.83.0
|
|
x-stainless-read-timeout:
|
|
- X-STAINLESS-READ-TIMEOUT-XXX
|
|
x-stainless-retry-count:
|
|
- '0'
|
|
x-stainless-runtime:
|
|
- CPython
|
|
x-stainless-runtime-version:
|
|
- 3.13.12
|
|
method: POST
|
|
uri: https://api.openai.com/v1/chat/completions
|
|
response:
|
|
body:
|
|
string: "{\n \"id\": \"chatcmpl-DDGAImuBOpJTAf2UGXPUCFcRcYXua\",\n \"object\":
|
|
\"chat.completion\",\n \"created\": 1772052774,\n \"model\": \"gpt-4.1-mini-2025-04-14\",\n
|
|
\ \"choices\": [\n {\n \"index\": 0,\n \"message\": {\n \"role\":
|
|
\"assistant\",\n \"content\": \"{\\\"valid\\\":false,\\\"feedback\\\":\\\"None
|
|
of the authors listed are from Italy. The guardrail requires that the authors
|
|
be from Italy, but all the authors mentioned, such as Barbara W. Tuchman,
|
|
G.J. Meyer, John Keegan, Christopher Clark, Adam Hochschild, Niall Ferguson,
|
|
Max Hastings, R.G. Grant, and Margaret MacMillan, are not Italian. Therefore,
|
|
the task result does not comply with the guardrail.\\\"}\",\n \"refusal\":
|
|
null,\n \"annotations\": []\n },\n \"logprobs\": null,\n
|
|
\ \"finish_reason\": \"stop\"\n }\n ],\n \"usage\": {\n \"prompt_tokens\":
|
|
500,\n \"completion_tokens\": 93,\n \"total_tokens\": 593,\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_d96d8e3578\"\n}\n"
|
|
headers:
|
|
CF-RAY:
|
|
- CF-RAY-XXX
|
|
Connection:
|
|
- keep-alive
|
|
Content-Type:
|
|
- application/json
|
|
Date:
|
|
- Wed, 25 Feb 2026 20:52:56 GMT
|
|
Server:
|
|
- cloudflare
|
|
Strict-Transport-Security:
|
|
- STS-XXX
|
|
Transfer-Encoding:
|
|
- chunked
|
|
X-Content-Type-Options:
|
|
- X-CONTENT-TYPE-XXX
|
|
access-control-expose-headers:
|
|
- ACCESS-CONTROL-XXX
|
|
alt-svc:
|
|
- h3=":443"; ma=86400
|
|
cf-cache-status:
|
|
- DYNAMIC
|
|
openai-organization:
|
|
- OPENAI-ORG-XXX
|
|
openai-processing-ms:
|
|
- '1401'
|
|
openai-project:
|
|
- OPENAI-PROJECT-XXX
|
|
openai-version:
|
|
- '2020-10-01'
|
|
x-openai-proxy-wasm:
|
|
- v0.1
|
|
x-ratelimit-limit-requests:
|
|
- X-RATELIMIT-LIMIT-REQUESTS-XXX
|
|
x-ratelimit-limit-tokens:
|
|
- X-RATELIMIT-LIMIT-TOKENS-XXX
|
|
x-ratelimit-remaining-requests:
|
|
- X-RATELIMIT-REMAINING-REQUESTS-XXX
|
|
x-ratelimit-remaining-tokens:
|
|
- X-RATELIMIT-REMAINING-TOKENS-XXX
|
|
x-ratelimit-reset-requests:
|
|
- X-RATELIMIT-RESET-REQUESTS-XXX
|
|
x-ratelimit-reset-tokens:
|
|
- X-RATELIMIT-RESET-TOKENS-XXX
|
|
x-request-id:
|
|
- X-REQUEST-ID-XXX
|
|
status:
|
|
code: 200
|
|
message: OK
|
|
- request:
|
|
body: '{"messages":[{"role":"system","content":"You are Test Agent. Test Backstory\nYour
|
|
personal goal is: Test Goal"},{"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\nProvide your complete response:"},{"role":"assistant","content":"Here
|
|
is a list of available books on the First World War:\n\n1. \"The Guns of August\"
|
|
by Barbara W. Tuchman\n2. \"A World Undone: The Story of the Great War, 1914
|
|
to 1918\" by G.J. Meyer\n3. \"The First World War\" by John Keegan\n4. \"The
|
|
Sleepwalkers: How Europe Went to War in 1914\" by Christopher Clark\n5. \"To
|
|
End All Wars: A Story of Loyalty and Rebellion, 1914-1918\" by Adam Hochschild\n6.
|
|
\"The Pity of War\" by Niall Ferguson\n7. \"Catastrophe 1914: Europe Goes to
|
|
War\" by Max Hastings\n8. \"World War I: The Definitive Visual History\" by
|
|
R.G. Grant\n9. \"The War That Ended Peace: The Road to 1914\" by Margaret MacMillan\n10.
|
|
\"Paris 1919: Six Months That Changed the World\" by Margaret MacMillan\n\nThese
|
|
books cover various aspects of the First World War, including its causes, key
|
|
battles, political consequences, and personal experiences."},{"role":"system","content":"You
|
|
are Test Agent. Test Backstory\nYour personal goal is: Test Goal"},{"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 the authors mentioned, such
|
|
as Barbara W. Tuchman, G.J. Meyer, John Keegan, Christopher Clark, Adam Hochschild,
|
|
Niall Ferguson, Max Hastings, R.G. Grant, and Margaret MacMillan, are not Italian.
|
|
Therefore, the task result does not comply with the guardrail.\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\n2. \"A World Undone: The Story of the
|
|
Great War, 1914 to 1918\" by G.J. Meyer\n3. \"The First World War\" by John
|
|
Keegan\n4. \"The Sleepwalkers: How Europe Went to War in 1914\" by Christopher
|
|
Clark\n5. \"To End All Wars: A Story of Loyalty and Rebellion, 1914-1918\" by
|
|
Adam Hochschild\n6. \"The Pity of War\" by Niall Ferguson\n7. \"Catastrophe
|
|
1914: Europe Goes to War\" by Max Hastings\n8. \"World War I: The Definitive
|
|
Visual History\" by R.G. Grant\n9. \"The War That Ended Peace: The Road to 1914\"
|
|
by Margaret MacMillan\n10. \"Paris 1919: Six Months That Changed the World\"
|
|
by Margaret MacMillan\n\nThese books cover various aspects of the First World
|
|
War, including its causes, key battles, political consequences, and personal
|
|
experiences.\n\n\nTry again, making sure to address the validation error.\n\nProvide
|
|
your complete response:"}],"model":"gpt-4.1-mini"}'
|
|
headers:
|
|
User-Agent:
|
|
- X-USER-AGENT-XXX
|
|
accept:
|
|
- application/json
|
|
accept-encoding:
|
|
- ACCEPT-ENCODING-XXX
|
|
authorization:
|
|
- AUTHORIZATION-XXX
|
|
connection:
|
|
- keep-alive
|
|
content-length:
|
|
- '3185'
|
|
content-type:
|
|
- application/json
|
|
cookie:
|
|
- COOKIE-XXX
|
|
host:
|
|
- api.openai.com
|
|
x-stainless-arch:
|
|
- X-STAINLESS-ARCH-XXX
|
|
x-stainless-async:
|
|
- 'false'
|
|
x-stainless-lang:
|
|
- python
|
|
x-stainless-os:
|
|
- X-STAINLESS-OS-XXX
|
|
x-stainless-package-version:
|
|
- 1.83.0
|
|
x-stainless-read-timeout:
|
|
- X-STAINLESS-READ-TIMEOUT-XXX
|
|
x-stainless-retry-count:
|
|
- '0'
|
|
x-stainless-runtime:
|
|
- CPython
|
|
x-stainless-runtime-version:
|
|
- 3.13.12
|
|
method: POST
|
|
uri: https://api.openai.com/v1/chat/completions
|
|
response:
|
|
body:
|
|
string: "{\n \"id\": \"chatcmpl-DDGAKo0MLHbMnvDBrDJ43r7OO4uh8\",\n \"object\":
|
|
\"chat.completion\",\n \"created\": 1772052776,\n \"model\": \"gpt-4.1-mini-2025-04-14\",\n
|
|
\ \"choices\": [\n {\n \"index\": 0,\n \"message\": {\n \"role\":
|
|
\"assistant\",\n \"content\": \"Here is a list of available books on
|
|
the First World War by Italian authors:\\n\\n1. \\\"La Grande Guerra\\\" by
|
|
Alessandro Barbero \\n2. \\\"Il grande nulla: La prima guerra mondiale\\\"
|
|
by Emilio Gentile \\n3. \\\"La guerra italiana 1915-1918\\\" by Paolo Piccione
|
|
\ \\n4. \\\"La prima guerra mondiale\\\" by Andrea di Robilant \\n5. \\\"1914-1918:
|
|
La guerra e la memoria\\\" edited by Paolo G. Minuto \\n\\nThese books provide
|
|
various perspectives on the First World War from Italian historians and authors.\",\n
|
|
\ \"refusal\": null,\n \"annotations\": []\n },\n \"logprobs\":
|
|
null,\n \"finish_reason\": \"stop\"\n }\n ],\n \"usage\": {\n \"prompt_tokens\":
|
|
763,\n \"completion_tokens\": 117,\n \"total_tokens\": 880,\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_a391f2cee0\"\n}\n"
|
|
headers:
|
|
CF-RAY:
|
|
- CF-RAY-XXX
|
|
Connection:
|
|
- keep-alive
|
|
Content-Type:
|
|
- application/json
|
|
Date:
|
|
- Wed, 25 Feb 2026 20:52:58 GMT
|
|
Server:
|
|
- cloudflare
|
|
Strict-Transport-Security:
|
|
- STS-XXX
|
|
Transfer-Encoding:
|
|
- chunked
|
|
X-Content-Type-Options:
|
|
- X-CONTENT-TYPE-XXX
|
|
access-control-expose-headers:
|
|
- ACCESS-CONTROL-XXX
|
|
alt-svc:
|
|
- h3=":443"; ma=86400
|
|
cf-cache-status:
|
|
- DYNAMIC
|
|
openai-organization:
|
|
- OPENAI-ORG-XXX
|
|
openai-processing-ms:
|
|
- '1725'
|
|
openai-project:
|
|
- OPENAI-PROJECT-XXX
|
|
openai-version:
|
|
- '2020-10-01'
|
|
x-openai-proxy-wasm:
|
|
- v0.1
|
|
x-ratelimit-limit-requests:
|
|
- X-RATELIMIT-LIMIT-REQUESTS-XXX
|
|
x-ratelimit-limit-tokens:
|
|
- X-RATELIMIT-LIMIT-TOKENS-XXX
|
|
x-ratelimit-remaining-requests:
|
|
- X-RATELIMIT-REMAINING-REQUESTS-XXX
|
|
x-ratelimit-remaining-tokens:
|
|
- X-RATELIMIT-REMAINING-TOKENS-XXX
|
|
x-ratelimit-reset-requests:
|
|
- X-RATELIMIT-RESET-REQUESTS-XXX
|
|
x-ratelimit-reset-tokens:
|
|
- X-RATELIMIT-RESET-TOKENS-XXX
|
|
x-request-id:
|
|
- X-REQUEST-ID-XXX
|
|
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\"},{\"role\":\"user\",\"content\":\"\\nCurrent Task: \\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 by
|
|
Italian authors:\\n\\n1. \\\"La Grande Guerra\\\" by Alessandro Barbero \\n2.
|
|
\\\"Il grande nulla: La prima guerra mondiale\\\" by Emilio Gentile \\n3. \\\"La
|
|
guerra italiana 1915-1918\\\" by Paolo Piccione \\n4. \\\"La prima guerra mondiale\\\"
|
|
by Andrea di Robilant \\n5. \\\"1914-1918: La guerra e la memoria\\\" edited
|
|
by Paolo G. Minuto \\n\\nThese books provide various perspectives on the First
|
|
World War from Italian historians and authors.\\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 \\n\\nProvide your complete response:\"}],\"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:
|
|
User-Agent:
|
|
- X-USER-AGENT-XXX
|
|
accept:
|
|
- application/json
|
|
accept-encoding:
|
|
- ACCEPT-ENCODING-XXX
|
|
authorization:
|
|
- AUTHORIZATION-XXX
|
|
connection:
|
|
- keep-alive
|
|
content-length:
|
|
- '1896'
|
|
content-type:
|
|
- application/json
|
|
cookie:
|
|
- COOKIE-XXX
|
|
host:
|
|
- api.openai.com
|
|
x-stainless-arch:
|
|
- X-STAINLESS-ARCH-XXX
|
|
x-stainless-async:
|
|
- 'false'
|
|
x-stainless-helper-method:
|
|
- beta.chat.completions.parse
|
|
x-stainless-lang:
|
|
- python
|
|
x-stainless-os:
|
|
- X-STAINLESS-OS-XXX
|
|
x-stainless-package-version:
|
|
- 1.83.0
|
|
x-stainless-read-timeout:
|
|
- X-STAINLESS-READ-TIMEOUT-XXX
|
|
x-stainless-retry-count:
|
|
- '0'
|
|
x-stainless-runtime:
|
|
- CPython
|
|
x-stainless-runtime-version:
|
|
- 3.13.12
|
|
method: POST
|
|
uri: https://api.openai.com/v1/chat/completions
|
|
response:
|
|
body:
|
|
string: "{\n \"id\": \"chatcmpl-DDGAMhqLQH0xSQdFBe8xOEyjBIa59\",\n \"object\":
|
|
\"chat.completion\",\n \"created\": 1772052778,\n \"model\": \"gpt-4.1-mini-2025-04-14\",\n
|
|
\ \"choices\": [\n {\n \"index\": 0,\n \"message\": {\n \"role\":
|
|
\"assistant\",\n \"content\": \"{\\\"valid\\\":true,\\\"feedback\\\":null}\",\n
|
|
\ \"refusal\": null,\n \"annotations\": []\n },\n \"logprobs\":
|
|
null,\n \"finish_reason\": \"stop\"\n }\n ],\n \"usage\": {\n \"prompt_tokens\":
|
|
377,\n \"completion_tokens\": 9,\n \"total_tokens\": 386,\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_d96d8e3578\"\n}\n"
|
|
headers:
|
|
CF-RAY:
|
|
- CF-RAY-XXX
|
|
Connection:
|
|
- keep-alive
|
|
Content-Type:
|
|
- application/json
|
|
Date:
|
|
- Wed, 25 Feb 2026 20:52:58 GMT
|
|
Server:
|
|
- cloudflare
|
|
Strict-Transport-Security:
|
|
- STS-XXX
|
|
Transfer-Encoding:
|
|
- chunked
|
|
X-Content-Type-Options:
|
|
- X-CONTENT-TYPE-XXX
|
|
access-control-expose-headers:
|
|
- ACCESS-CONTROL-XXX
|
|
alt-svc:
|
|
- h3=":443"; ma=86400
|
|
cf-cache-status:
|
|
- DYNAMIC
|
|
openai-organization:
|
|
- OPENAI-ORG-XXX
|
|
openai-processing-ms:
|
|
- '420'
|
|
openai-project:
|
|
- OPENAI-PROJECT-XXX
|
|
openai-version:
|
|
- '2020-10-01'
|
|
x-openai-proxy-wasm:
|
|
- v0.1
|
|
x-ratelimit-limit-requests:
|
|
- X-RATELIMIT-LIMIT-REQUESTS-XXX
|
|
x-ratelimit-limit-tokens:
|
|
- X-RATELIMIT-LIMIT-TOKENS-XXX
|
|
x-ratelimit-remaining-requests:
|
|
- X-RATELIMIT-REMAINING-REQUESTS-XXX
|
|
x-ratelimit-remaining-tokens:
|
|
- X-RATELIMIT-REMAINING-TOKENS-XXX
|
|
x-ratelimit-reset-requests:
|
|
- X-RATELIMIT-RESET-REQUESTS-XXX
|
|
x-ratelimit-reset-tokens:
|
|
- X-RATELIMIT-RESET-TOKENS-XXX
|
|
x-request-id:
|
|
- X-REQUEST-ID-XXX
|
|
status:
|
|
code: 200
|
|
message: OK
|
|
- request:
|
|
body: '{"messages":[{"role":"system","content":"You are Test Agent. Test Backstory\nYour
|
|
personal goal is: Test Goal"},{"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\nProvide your complete response:"},{"role":"assistant","content":"Here
|
|
is a list of available books on the First World War:\n\n1. \"The Guns of August\"
|
|
by Barbara W. Tuchman\n2. \"A World Undone: The Story of the Great War, 1914
|
|
to 1918\" by G.J. Meyer\n3. \"The First World War\" by John Keegan\n4. \"The
|
|
Sleepwalkers: How Europe Went to War in 1914\" by Christopher Clark\n5. \"To
|
|
End All Wars: A Story of Loyalty and Rebellion, 1914-1918\" by Adam Hochschild\n6.
|
|
\"The Pity of War\" by Niall Ferguson\n7. \"Catastrophe 1914: Europe Goes to
|
|
War\" by Max Hastings\n8. \"World War I: The Definitive Visual History\" by
|
|
R.G. Grant\n9. \"The War That Ended Peace: The Road to 1914\" by Margaret MacMillan\n10.
|
|
\"Paris 1919: Six Months That Changed the World\" by Margaret MacMillan\n\nThese
|
|
books cover various aspects of the First World War, including its causes, key
|
|
battles, political consequences, and personal experiences."},{"role":"system","content":"You
|
|
are Test Agent. Test Backstory\nYour personal goal is: Test Goal"},{"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 the authors mentioned, such
|
|
as Barbara W. Tuchman, G.J. Meyer, John Keegan, Christopher Clark, Adam Hochschild,
|
|
Niall Ferguson, Max Hastings, R.G. Grant, and Margaret MacMillan, are not Italian.
|
|
Therefore, the task result does not comply with the guardrail.\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\n2. \"A World Undone: The Story of the
|
|
Great War, 1914 to 1918\" by G.J. Meyer\n3. \"The First World War\" by John
|
|
Keegan\n4. \"The Sleepwalkers: How Europe Went to War in 1914\" by Christopher
|
|
Clark\n5. \"To End All Wars: A Story of Loyalty and Rebellion, 1914-1918\" by
|
|
Adam Hochschild\n6. \"The Pity of War\" by Niall Ferguson\n7. \"Catastrophe
|
|
1914: Europe Goes to War\" by Max Hastings\n8. \"World War I: The Definitive
|
|
Visual History\" by R.G. Grant\n9. \"The War That Ended Peace: The Road to 1914\"
|
|
by Margaret MacMillan\n10. \"Paris 1919: Six Months That Changed the World\"
|
|
by Margaret MacMillan\n\nThese books cover various aspects of the First World
|
|
War, including its causes, key battles, political consequences, and personal
|
|
experiences.\n\n\nTry again, making sure to address the validation error.\n\nProvide
|
|
your complete response:"},{"role":"assistant","content":"Here is a list of available
|
|
books on the First World War by Italian authors:\n\n1. \"La Grande Guerra\"
|
|
by Alessandro Barbero \n2. \"Il grande nulla: La prima guerra mondiale\" by
|
|
Emilio Gentile \n3. \"La guerra italiana 1915-1918\" by Paolo Piccione \n4.
|
|
\"La prima guerra mondiale\" by Andrea di Robilant \n5. \"1914-1918: La guerra
|
|
e la memoria\" edited by Paolo G. Minuto \n\nThese books provide various perspectives
|
|
on the First World War from Italian historians and authors."},{"role":"system","content":"You
|
|
are Test Agent. Test Backstory\nYour personal goal is: Test Goal"},{"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\nProvide
|
|
your complete response:"}],"model":"gpt-4.1-mini"}'
|
|
headers:
|
|
User-Agent:
|
|
- X-USER-AGENT-XXX
|
|
accept:
|
|
- application/json
|
|
accept-encoding:
|
|
- ACCEPT-ENCODING-XXX
|
|
authorization:
|
|
- AUTHORIZATION-XXX
|
|
connection:
|
|
- keep-alive
|
|
content-length:
|
|
- '4036'
|
|
content-type:
|
|
- application/json
|
|
cookie:
|
|
- COOKIE-XXX
|
|
host:
|
|
- api.openai.com
|
|
x-stainless-arch:
|
|
- X-STAINLESS-ARCH-XXX
|
|
x-stainless-async:
|
|
- 'false'
|
|
x-stainless-lang:
|
|
- python
|
|
x-stainless-os:
|
|
- X-STAINLESS-OS-XXX
|
|
x-stainless-package-version:
|
|
- 1.83.0
|
|
x-stainless-read-timeout:
|
|
- X-STAINLESS-READ-TIMEOUT-XXX
|
|
x-stainless-retry-count:
|
|
- '0'
|
|
x-stainless-runtime:
|
|
- CPython
|
|
x-stainless-runtime-version:
|
|
- 3.13.12
|
|
method: POST
|
|
uri: https://api.openai.com/v1/chat/completions
|
|
response:
|
|
body:
|
|
string: "{\n \"id\": \"chatcmpl-DDGAMOb5FXfsZwEhCqnUP11VAcuqF\",\n \"object\":
|
|
\"chat.completion\",\n \"created\": 1772052778,\n \"model\": \"gpt-4.1-mini-2025-04-14\",\n
|
|
\ \"choices\": [\n {\n \"index\": 0,\n \"message\": {\n \"role\":
|
|
\"assistant\",\n \"content\": \"Output\",\n \"refusal\": null,\n
|
|
\ \"annotations\": []\n },\n \"logprobs\": null,\n \"finish_reason\":
|
|
\"stop\"\n }\n ],\n \"usage\": {\n \"prompt_tokens\": 948,\n \"completion_tokens\":
|
|
1,\n \"total_tokens\": 949,\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_a391f2cee0\"\n}\n"
|
|
headers:
|
|
CF-RAY:
|
|
- CF-RAY-XXX
|
|
Connection:
|
|
- keep-alive
|
|
Content-Type:
|
|
- application/json
|
|
Date:
|
|
- Wed, 25 Feb 2026 20:52:59 GMT
|
|
Server:
|
|
- cloudflare
|
|
Strict-Transport-Security:
|
|
- STS-XXX
|
|
Transfer-Encoding:
|
|
- chunked
|
|
X-Content-Type-Options:
|
|
- X-CONTENT-TYPE-XXX
|
|
access-control-expose-headers:
|
|
- ACCESS-CONTROL-XXX
|
|
alt-svc:
|
|
- h3=":443"; ma=86400
|
|
cf-cache-status:
|
|
- DYNAMIC
|
|
openai-organization:
|
|
- OPENAI-ORG-XXX
|
|
openai-processing-ms:
|
|
- '347'
|
|
openai-project:
|
|
- OPENAI-PROJECT-XXX
|
|
openai-version:
|
|
- '2020-10-01'
|
|
x-openai-proxy-wasm:
|
|
- v0.1
|
|
x-ratelimit-limit-requests:
|
|
- X-RATELIMIT-LIMIT-REQUESTS-XXX
|
|
x-ratelimit-limit-tokens:
|
|
- X-RATELIMIT-LIMIT-TOKENS-XXX
|
|
x-ratelimit-remaining-requests:
|
|
- X-RATELIMIT-REMAINING-REQUESTS-XXX
|
|
x-ratelimit-remaining-tokens:
|
|
- X-RATELIMIT-REMAINING-TOKENS-XXX
|
|
x-ratelimit-reset-requests:
|
|
- X-RATELIMIT-RESET-REQUESTS-XXX
|
|
x-ratelimit-reset-tokens:
|
|
- X-RATELIMIT-RESET-TOKENS-XXX
|
|
x-request-id:
|
|
- X-REQUEST-ID-XXX
|
|
status:
|
|
code: 200
|
|
message: OK
|
|
version: 1
|