diff --git a/lib/crewai/tests/cassettes/tracing/TestTraceListenerSetup.test_trace_listener_collects_crew_events.yaml b/lib/crewai/tests/cassettes/tracing/TestTraceListenerSetup.test_trace_listener_collects_crew_events.yaml
index 19be1b0ac..a729313c4 100644
--- a/lib/crewai/tests/cassettes/tracing/TestTraceListenerSetup.test_trace_listener_collects_crew_events.yaml
+++ b/lib/crewai/tests/cassettes/tracing/TestTraceListenerSetup.test_trace_listener_collects_crew_events.yaml
@@ -1,6 +1,34 @@
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: Say hello to the world\n\nThis is the expected criteria for your final answer: hello world\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:"]}'
+ body: '{}'
+ headers:
+ accept:
+ - application/json
+ content-type:
+ - application/json
+ method: POST
+ uri: https://fake.crewai.com/crewai_plus/api/v1/tracing/batches
+ response:
+ body:
+ string: '{"trace_id":"test-trace-id-12345","ephemeral_trace_id":"test-ephemeral-id-12345","status":"initialized"}'
+ headers:
+ Content-Type:
+ - application/json
+ 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: Say hello to
+ the world\n\nThis is the expected criteria for your final answer: hello world\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
@@ -13,7 +41,8 @@ interactions:
content-type:
- application/json
cookie:
- - __cf_bm=ePO5hy0kEoADCuKcboFy1iS1qckCE5KCpifQaXnlomM-1754508545-1.0.1.1-ieWfjcdIxQIXGfaMizvmgTvZPRFehqDXliegaOT7EO.kt7KSSFGmNDcC35_D9hOhE.fJ5K302uX0snQF3nLaapds2dqgGbNcsyFPOKNvAdI; _cfuvid=NaXWifUGChHp6Ap1mvfMrNzmO4HdzddrqXkSR9T.hYo-1754508545647-0.0.1.1-604800000
+ - __cf_bm=ePO5hy0kEoADCuKcboFy1iS1qckCE5KCpifQaXnlomM-1754508545-1.0.1.1-ieWfjcdIxQIXGfaMizvmgTvZPRFehqDXliegaOT7EO.kt7KSSFGmNDcC35_D9hOhE.fJ5K302uX0snQF3nLaapds2dqgGbNcsyFPOKNvAdI;
+ _cfuvid=NaXWifUGChHp6Ap1mvfMrNzmO4HdzddrqXkSR9T.hYo-1754508545647-0.0.1.1-604800000
host:
- api.openai.com
user-agent:
@@ -42,7 +71,19 @@ interactions:
uri: https://api.openai.com/v1/chat/completions
response:
body:
- string: "{\n \"id\": \"chatcmpl-C1e6uBsZ3iMw51p03hHTkBgHjA5ym\",\n \"object\": \"chat.completion\",\n \"created\": 1754508548,\n \"model\": \"gpt-4o-mini-2024-07-18\",\n \"choices\": [\n {\n \"index\": 0,\n \"message\": {\n \"role\": \"assistant\",\n \"content\": \"I now can give a great answer \\nFinal Answer: hello world\",\n \"refusal\": null,\n \"annotations\": []\n },\n \"logprobs\": null,\n \"finish_reason\": \"stop\"\n }\n ],\n \"usage\": {\n \"prompt_tokens\": 157,\n \"completion_tokens\": 13,\n \"total_tokens\": 170,\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_34a54ae93c\"\n}\n"
+ string: "{\n \"id\": \"chatcmpl-C1e6uBsZ3iMw51p03hHTkBgHjA5ym\",\n \"object\"\
+ : \"chat.completion\",\n \"created\": 1754508548,\n \"model\": \"gpt-4o-mini-2024-07-18\"\
+ ,\n \"choices\": [\n {\n \"index\": 0,\n \"message\": {\n \
+ \ \"role\": \"assistant\",\n \"content\": \"I now can give a great\
+ \ answer \\nFinal Answer: hello world\",\n \"refusal\": null,\n \
+ \ \"annotations\": []\n },\n \"logprobs\": null,\n \"\
+ finish_reason\": \"stop\"\n }\n ],\n \"usage\": {\n \"prompt_tokens\"\
+ : 157,\n \"completion_tokens\": 13,\n \"total_tokens\": 170,\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_34a54ae93c\"\n}\n"
headers:
CF-RAY:
- 96b0f0fb5c067ad9-SJC
@@ -100,7 +141,16 @@ interactions:
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: Say hello to the world\n\nThis is the expected criteria for your final answer: hello world\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"}'
+ 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: Say hello to
+ the world\n\nThis is the expected criteria for your final answer: hello world\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"}'
headers:
accept:
- application/json
@@ -113,7 +163,8 @@ interactions:
content-type:
- application/json
cookie:
- - __cf_bm=f59gEPi_nA3TTxtjbKaSQpvkTwezaAqOvqfxiGzRnVQ-1754508546-1.0.1.1-JrSaytxVIQSVE00I.vyGj7d4HJbbMV6R9fWPJbkDKu0Y8ueMRzTwTUnfz0YzP5nsZX5oxoE6WlmFxOuz0rRuq9YhZZsO_TbaFBOFk1jGK9U; _cfuvid=3D66v3.J_RcVoYy9dlF.jHwq1zTIm842xynZxzSy1Wc-1754508546352-0.0.1.1-604800000
+ - __cf_bm=f59gEPi_nA3TTxtjbKaSQpvkTwezaAqOvqfxiGzRnVQ-1754508546-1.0.1.1-JrSaytxVIQSVE00I.vyGj7d4HJbbMV6R9fWPJbkDKu0Y8ueMRzTwTUnfz0YzP5nsZX5oxoE6WlmFxOuz0rRuq9YhZZsO_TbaFBOFk1jGK9U;
+ _cfuvid=3D66v3.J_RcVoYy9dlF.jHwq1zTIm842xynZxzSy1Wc-1754508546352-0.0.1.1-604800000
host:
- api.openai.com
user-agent:
@@ -142,7 +193,19 @@ interactions:
uri: https://api.openai.com/v1/chat/completions
response:
body:
- string: "{\n \"id\": \"chatcmpl-C1e6vUMjwrC8Zt9Htraa70hbbt5d7\",\n \"object\": \"chat.completion\",\n \"created\": 1754508549,\n \"model\": \"gpt-4o-mini-2024-07-18\",\n \"choices\": [\n {\n \"index\": 0,\n \"message\": {\n \"role\": \"assistant\",\n \"content\": \"I now can give a great answer \\nFinal Answer: hello world\",\n \"refusal\": null,\n \"annotations\": []\n },\n \"logprobs\": null,\n \"finish_reason\": \"stop\"\n }\n ],\n \"usage\": {\n \"prompt_tokens\": 157,\n \"completion_tokens\": 13,\n \"total_tokens\": 170,\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_34a54ae93c\"\n}\n"
+ string: "{\n \"id\": \"chatcmpl-C1e6vUMjwrC8Zt9Htraa70hbbt5d7\",\n \"object\"\
+ : \"chat.completion\",\n \"created\": 1754508549,\n \"model\": \"gpt-4o-mini-2024-07-18\"\
+ ,\n \"choices\": [\n {\n \"index\": 0,\n \"message\": {\n \
+ \ \"role\": \"assistant\",\n \"content\": \"I now can give a great\
+ \ answer \\nFinal Answer: hello world\",\n \"refusal\": null,\n \
+ \ \"annotations\": []\n },\n \"logprobs\": null,\n \"\
+ finish_reason\": \"stop\"\n }\n ],\n \"usage\": {\n \"prompt_tokens\"\
+ : 157,\n \"completion_tokens\": 13,\n \"total_tokens\": 170,\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_34a54ae93c\"\n}\n"
headers:
CF-RAY:
- 96b0f101793aeb2c-SJC
@@ -200,7 +263,11 @@ interactions:
code: 200
message: OK
- request:
- body: '{"trace_id": "2487456d-e03a-4eae-92a1-e9779e8f06a1", "execution_type": "crew", "execution_context": {"crew_fingerprint": null, "crew_name": "Unknown Crew", "flow_name": "Unknown Flow", "crewai_version": "0.152.0", "privacy_level": "standard"}, "execution_metadata": {"expected_duration_estimate": 300, "agent_count": 0, "task_count": 0, "flow_method_count": 0, "execution_started_at": "2025-08-06T19:30:52.475039+00:00"}}'
+ body: '{"trace_id": "2487456d-e03a-4eae-92a1-e9779e8f06a1", "execution_type":
+ "crew", "execution_context": {"crew_fingerprint": null, "crew_name": "Unknown
+ Crew", "flow_name": "Unknown Flow", "crewai_version": "0.152.0", "privacy_level":
+ "standard"}, "execution_metadata": {"expected_duration_estimate": 300, "agent_count":
+ 0, "task_count": 0, "flow_method_count": 0, "execution_started_at": "2025-08-06T19:30:52.475039+00:00"}}'
headers:
Accept:
- '*/*'
@@ -222,8 +289,29 @@ interactions:
uri: https://app.crewai.com/crewai_plus/api/v1/tracing/batches
response:
body:
- string: "\n\n
\n The page you were looking for doesn't exist (404)\n \n \n\n\n\n \n \n
\n
The page you were looking for doesn't exist.
\n
You may have mistyped the address or the page may have moved.
\n
\n
If you are the application owner check the logs for more information.
\n
\n\n\n"
+ string: "\n\n\n The page you were looking\
+ \ for doesn't exist (404)\n \n \n\n\n\n \n\
+ \ \n
\n
The page you were looking\
+ \ for doesn't exist.
\n
You may have mistyped the address or the\
+ \ page may have moved.
\n
\n
If you are the application\
+ \ owner check the logs for more information.
\n
\n\n\n"
headers:
Connection:
- keep-alive
@@ -243,13 +331,84 @@ interactions:
code: 404
message: Not Found
- request:
- body: '{"version": "0.152.0", "batch_id": "2487456d-e03a-4eae-92a1-e9779e8f06a1", "user_context": {"user_id": "anonymous", "organization_id": "", "session_id": "57ab4cf7-915a-4d4e-b01d-3791f418dd39", "trace_id": "c780f111-40df-4c4b-ae88-b09c0f7e3276"}, "execution_metadata": {"crew_name": "Unknown Crew", "crewai_version": "0.152.0"}, "events": [{"event_id": "55b93497-f7f7-4c2e-baf9-eeec358cf90f", "timestamp": "2025-08-06T19:30:52.588780+00:00", "type": "llm_call_started", "event_data": {"timestamp": "2025-08-06T19:30:52.473897+00:00", "type": "llm_call_started", "source_fingerprint": null, "source_type": null, "fingerprint_metadata": null, "task_name": null, "task_id": "020f12f8-4bcf-4e49-9bf9-d8fee70eaf6a", "agent_id": "126a2971-a630-405c-a0d9-72d2c46e8074", "agent_role": "Test Agent", "model": "gpt-4o-mini", "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\n..."}, {"role": "user", "content": "\nCurrent Task: Say hello to the world\n\nThis is the expected criteria for your final answer: hello world\nyou MUST return the actual complete content as the final answer, not a summary.\n\nBegin! This is ..."}], "tools": null, "callbacks": [""], "available_functions": null}}, {"event_id": "967e03f5-fc65-477f-a1ba-4614acbd0527", "timestamp": "2025-08-06T19:30:52.588932+00:00", "type": "llm_call_started", "event_data": {"timestamp": "2025-08-06T19:30:52.473897+00:00", "type": "llm_call_started", "source_fingerprint": null, "source_type": null, "fingerprint_metadata": null, "task_name": null, "task_id": "020f12f8-4bcf-4e49-9bf9-d8fee70eaf6a", "agent_id": "126a2971-a630-405c-a0d9-72d2c46e8074", "agent_role": "Test Agent", "model": "gpt-4o-mini", "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\n..."}, {"role": "user", "content": "\nCurrent Task: Say hello to the world\n\nThis is the expected criteria for your final answer: hello world\nyou MUST return the actual complete content as the final answer, not a summary.\n\nBegin! This is ..."}], "tools": null, "callbacks": [""], "available_functions": null}}, {"event_id": "f67f33c0-f9ac-450e-987e-bb48880b9b69", "timestamp": "2025-08-06T19:30:52.597813+00:00", "type": "llm_call_completed", "event_data": {"timestamp": "2025-08-06T19:30:52.597748+00:00", "type": "llm_call_completed", "source_fingerprint": null, "source_type": null, "fingerprint_metadata": null, "task_name": null, "task_id": "020f12f8-4bcf-4e49-9bf9-d8fee70eaf6a", "agent_id": "126a2971-a630-405c-a0d9-72d2c46e8074",
- "agent_role": "Test Agent", "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\n..."}, {"role": "user", "content": "\nCurrent Task: Say hello to the world\n\nThis is the expected criteria for your final answer: hello world\nyou MUST return the actual complete content as the final answer, not a summary.\n\nBegin! This is ..."}], "response": "I now can give a great answer \nFinal Answer: hello world", "call_type": "", "response_cost": 3.135e-05, "model": "gpt-4o-mini"}}, {"event_id": "0868106f-9491-4214-9674-4f9c5621875b", "timestamp": "2025-08-06T19:30:52.597885+00:00", "type": "llm_call_completed", "event_data": {"timestamp": "2025-08-06T19:30:52.597748+00:00", "type": "llm_call_completed", "source_fingerprint": null, "source_type": null, "fingerprint_metadata":
- null, "task_name": null, "task_id": "020f12f8-4bcf-4e49-9bf9-d8fee70eaf6a", "agent_id": "126a2971-a630-405c-a0d9-72d2c46e8074", "agent_role": "Test Agent", "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\n..."}, {"role": "user", "content": "\nCurrent Task: Say hello to the world\n\nThis is the expected criteria for your final answer: hello world\nyou MUST return the actual complete content as the final answer, not a summary.\n\nBegin! This is ..."}], "response": "I now can give a great answer \nFinal Answer: hello world", "call_type": "", "response_cost": 3.135e-05, "model": "gpt-4o-mini"}}, {"event_id": "4b68fa53-1829-4201-bfa2-9364dbd8fc51", "timestamp": "2025-08-06T19:30:52.598054+00:00", "type": "agent_execution_completed", "event_data": {"serialization_error":
- "Circular reference detected (id repeated)", "object_type": "AgentExecutionCompletedEvent"}}, {"event_id": "264a2a9a-c234-45f2-8021-5e4b1b7c4c98", "timestamp": "2025-08-06T19:30:52.598224+00:00", "type": "agent_execution_completed", "event_data": {"serialization_error": "Circular reference detected (id repeated)", "object_type": "AgentExecutionCompletedEvent"}}, {"event_id": "b8b7f244-e2c0-4cac-9411-0efab7b9936a", "timestamp": "2025-08-06T19:30:52.598372+00:00", "type": "task_completed", "event_data": {"serialization_error": "Circular reference detected (id repeated)", "object_type": "TaskCompletedEvent"}}, {"event_id": "c15489a3-31af-48bb-8f32-cb3c3f46f7b9", "timestamp": "2025-08-06T19:30:52.598416+00:00", "type": "task_completed", "event_data": {"serialization_error": "Circular reference detected (id repeated)", "object_type": "TaskCompletedEvent"}}, {"event_id": "6806c6bd-1399-4261-aa23-5b6166c2ab31", "timestamp": "2025-08-06T19:30:52.601018+00:00", "type": "crew_kickoff_completed",
- "event_data": {"timestamp": "2025-08-06T19:30:52.600994+00:00", "type": "crew_kickoff_completed", "source_fingerprint": null, "source_type": null, "fingerprint_metadata": null, "crew_name": "crew", "crew": null, "output": {"description": "Say hello to the world", "name": null, "expected_output": "hello world", "summary": "Say hello to the world...", "raw": "hello world", "pydantic": null, "json_dict": null, "agent": "Test Agent", "output_format": "raw"}, "total_tokens": 170}}]}'
+ body: '{"version": "0.152.0", "batch_id": "2487456d-e03a-4eae-92a1-e9779e8f06a1",
+ "user_context": {"user_id": "anonymous", "organization_id": "", "session_id":
+ "57ab4cf7-915a-4d4e-b01d-3791f418dd39", "trace_id": "c780f111-40df-4c4b-ae88-b09c0f7e3276"},
+ "execution_metadata": {"crew_name": "Unknown Crew", "crewai_version": "0.152.0"},
+ "events": [{"event_id": "55b93497-f7f7-4c2e-baf9-eeec358cf90f", "timestamp":
+ "2025-08-06T19:30:52.588780+00:00", "type": "llm_call_started", "event_data":
+ {"timestamp": "2025-08-06T19:30:52.473897+00:00", "type": "llm_call_started",
+ "source_fingerprint": null, "source_type": null, "fingerprint_metadata": null,
+ "task_name": null, "task_id": "020f12f8-4bcf-4e49-9bf9-d8fee70eaf6a", "agent_id":
+ "126a2971-a630-405c-a0d9-72d2c46e8074", "agent_role": "Test Agent", "model":
+ "gpt-4o-mini", "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\n..."}, {"role": "user", "content": "\nCurrent Task:
+ Say hello to the world\n\nThis is the expected criteria for your final answer:
+ hello world\nyou MUST return the actual complete content as the final answer,
+ not a summary.\n\nBegin! This is ..."}], "tools": null, "callbacks": [""], "available_functions": null}}, {"event_id": "967e03f5-fc65-477f-a1ba-4614acbd0527",
+ "timestamp": "2025-08-06T19:30:52.588932+00:00", "type": "llm_call_started",
+ "event_data": {"timestamp": "2025-08-06T19:30:52.473897+00:00", "type": "llm_call_started",
+ "source_fingerprint": null, "source_type": null, "fingerprint_metadata": null,
+ "task_name": null, "task_id": "020f12f8-4bcf-4e49-9bf9-d8fee70eaf6a", "agent_id":
+ "126a2971-a630-405c-a0d9-72d2c46e8074", "agent_role": "Test Agent", "model":
+ "gpt-4o-mini", "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\n..."}, {"role": "user", "content": "\nCurrent Task:
+ Say hello to the world\n\nThis is the expected criteria for your final answer:
+ hello world\nyou MUST return the actual complete content as the final answer,
+ not a summary.\n\nBegin! This is ..."}], "tools": null, "callbacks": [""], "available_functions": null}}, {"event_id": "f67f33c0-f9ac-450e-987e-bb48880b9b69",
+ "timestamp": "2025-08-06T19:30:52.597813+00:00", "type": "llm_call_completed",
+ "event_data": {"timestamp": "2025-08-06T19:30:52.597748+00:00", "type": "llm_call_completed",
+ "source_fingerprint": null, "source_type": null, "fingerprint_metadata": null,
+ "task_name": null, "task_id": "020f12f8-4bcf-4e49-9bf9-d8fee70eaf6a", "agent_id":
+ "126a2971-a630-405c-a0d9-72d2c46e8074", "agent_role": "Test Agent", "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\n..."},
+ {"role": "user", "content": "\nCurrent Task: Say hello to the world\n\nThis
+ is the expected criteria for your final answer: hello world\nyou MUST return
+ the actual complete content as the final answer, not a summary.\n\nBegin! This
+ is ..."}], "response": "I now can give a great answer \nFinal Answer: hello
+ world", "call_type": "", "response_cost":
+ 3.135e-05, "model": "gpt-4o-mini"}}, {"event_id": "0868106f-9491-4214-9674-4f9c5621875b",
+ "timestamp": "2025-08-06T19:30:52.597885+00:00", "type": "llm_call_completed",
+ "event_data": {"timestamp": "2025-08-06T19:30:52.597748+00:00", "type": "llm_call_completed",
+ "source_fingerprint": null, "source_type": null, "fingerprint_metadata": null,
+ "task_name": null, "task_id": "020f12f8-4bcf-4e49-9bf9-d8fee70eaf6a", "agent_id":
+ "126a2971-a630-405c-a0d9-72d2c46e8074", "agent_role": "Test Agent", "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\n..."},
+ {"role": "user", "content": "\nCurrent Task: Say hello to the world\n\nThis
+ is the expected criteria for your final answer: hello world\nyou MUST return
+ the actual complete content as the final answer, not a summary.\n\nBegin! This
+ is ..."}], "response": "I now can give a great answer \nFinal Answer: hello
+ world", "call_type": "", "response_cost":
+ 3.135e-05, "model": "gpt-4o-mini"}}, {"event_id": "4b68fa53-1829-4201-bfa2-9364dbd8fc51",
+ "timestamp": "2025-08-06T19:30:52.598054+00:00", "type": "agent_execution_completed",
+ "event_data": {"serialization_error": "Circular reference detected (id repeated)",
+ "object_type": "AgentExecutionCompletedEvent"}}, {"event_id": "264a2a9a-c234-45f2-8021-5e4b1b7c4c98",
+ "timestamp": "2025-08-06T19:30:52.598224+00:00", "type": "agent_execution_completed",
+ "event_data": {"serialization_error": "Circular reference detected (id repeated)",
+ "object_type": "AgentExecutionCompletedEvent"}}, {"event_id": "b8b7f244-e2c0-4cac-9411-0efab7b9936a",
+ "timestamp": "2025-08-06T19:30:52.598372+00:00", "type": "task_completed", "event_data":
+ {"serialization_error": "Circular reference detected (id repeated)", "object_type":
+ "TaskCompletedEvent"}}, {"event_id": "c15489a3-31af-48bb-8f32-cb3c3f46f7b9",
+ "timestamp": "2025-08-06T19:30:52.598416+00:00", "type": "task_completed", "event_data":
+ {"serialization_error": "Circular reference detected (id repeated)", "object_type":
+ "TaskCompletedEvent"}}, {"event_id": "6806c6bd-1399-4261-aa23-5b6166c2ab31",
+ "timestamp": "2025-08-06T19:30:52.601018+00:00", "type": "crew_kickoff_completed",
+ "event_data": {"timestamp": "2025-08-06T19:30:52.600994+00:00", "type": "crew_kickoff_completed",
+ "source_fingerprint": null, "source_type": null, "fingerprint_metadata": null,
+ "crew_name": "crew", "crew": null, "output": {"description": "Say hello to the
+ world", "name": null, "expected_output": "hello world", "summary": "Say hello
+ to the world...", "raw": "hello world", "pydantic": null, "json_dict": null,
+ "agent": "Test Agent", "output_format": "raw"}, "total_tokens": 170}}]}'
headers:
Accept:
- '*/*'
@@ -271,8 +430,29 @@ interactions:
uri: https://app.crewai.com/crewai_plus/api/v1/tracing
response:
body:
- string: "\n\n\n The page you were looking for doesn't exist (404)\n \n \n\n\n\n \n \n
\n
The page you were looking for doesn't exist.
\n
You may have mistyped the address or the page may have moved.
\n
\n
If you are the application owner check the logs for more information.
\n
\n\n\n"
+ string: "\n\n\n The page you were looking\
+ \ for doesn't exist (404)\n \n \n\n\n\n \n\
+ \ \n
\n
The page you were looking\
+ \ for doesn't exist.
\n
You may have mistyped the address or the\
+ \ page may have moved.
\n
\n
If you are the application\
+ \ owner check the logs for more information.
\n
\n\n\n"
headers:
Connection:
- keep-alive
diff --git a/lib/crewai/tests/cassettes/tracing/TestTraceListenerSetup.test_trace_listener_ephemeral_batch.yaml b/lib/crewai/tests/cassettes/tracing/TestTraceListenerSetup.test_trace_listener_ephemeral_batch.yaml
index ffd427b8e..b1092e35b 100644
--- a/lib/crewai/tests/cassettes/tracing/TestTraceListenerSetup.test_trace_listener_ephemeral_batch.yaml
+++ b/lib/crewai/tests/cassettes/tracing/TestTraceListenerSetup.test_trace_listener_ephemeral_batch.yaml
@@ -1,6 +1,29 @@
interactions:
- request:
- body: '{"trace_id": "8356baf7-abbe-446a-9668-a63d501765d0", "execution_type": "crew", "user_identifier": null, "execution_context": {"crew_fingerprint": null, "crew_name": "crew", "flow_name": null, "crewai_version": "1.6.0", "privacy_level": "standard"}, "execution_metadata": {"expected_duration_estimate": 300, "agent_count": 0, "task_count": 0, "flow_method_count": 0, "execution_started_at": "2025-11-29T03:12:24.775214+00:00"}, "ephemeral_trace_id": "8356baf7-abbe-446a-9668-a63d501765d0"}'
+ body: '{}'
+ headers:
+ accept:
+ - application/json
+ content-type:
+ - application/json
+ method: POST
+ uri: https://fake.crewai.com/crewai_plus/api/v1/tracing/ephemeral/batches
+ response:
+ body:
+ string: '{"trace_id":"test-trace-id-12345","ephemeral_trace_id":"test-ephemeral-id-12345","status":"initialized"}'
+ headers:
+ Content-Type:
+ - application/json
+ status:
+ code: 200
+ message: OK
+- request:
+ body: '{"trace_id": "8356baf7-abbe-446a-9668-a63d501765d0", "execution_type":
+ "crew", "user_identifier": null, "execution_context": {"crew_fingerprint": null,
+ "crew_name": "crew", "flow_name": null, "crewai_version": "1.6.0", "privacy_level":
+ "standard"}, "execution_metadata": {"expected_duration_estimate": 300, "agent_count":
+ 0, "task_count": 0, "flow_method_count": 0, "execution_started_at": "2025-11-29T03:12:24.775214+00:00"},
+ "ephemeral_trace_id": "8356baf7-abbe-446a-9668-a63d501765d0"}'
headers:
Accept:
- '*/*'
@@ -66,7 +89,16 @@ interactions:
code: 201
message: Created
- 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: Say hello to the world\n\nThis is the expected criteria for your final answer: hello world\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"}'
+ 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: Say hello to the
+ world\n\nThis is the expected criteria for your final answer: hello world\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"}'
headers:
accept:
- application/json
@@ -106,7 +138,19 @@ interactions:
uri: https://api.openai.com/v1/chat/completions
response:
body:
- string: "{\n \"id\": \"chatcmpl-Ch5flaLDqIqyRdYlrrvZ3Pu6emSal\",\n \"object\": \"chat.completion\",\n \"created\": 1764385945,\n \"model\": \"gpt-4o-mini-2024-07-18\",\n \"choices\": [\n {\n \"index\": 0,\n \"message\": {\n \"role\": \"assistant\",\n \"content\": \"I now can give a great answer \\nFinal Answer: hello world\",\n \"refusal\": null,\n \"annotations\": []\n },\n \"logprobs\": null,\n \"finish_reason\": \"stop\"\n }\n ],\n \"usage\": {\n \"prompt_tokens\": 157,\n \"completion_tokens\": 13,\n \"total_tokens\": 170,\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"
+ string: "{\n \"id\": \"chatcmpl-Ch5flaLDqIqyRdYlrrvZ3Pu6emSal\",\n \"object\"\
+ : \"chat.completion\",\n \"created\": 1764385945,\n \"model\": \"gpt-4o-mini-2024-07-18\"\
+ ,\n \"choices\": [\n {\n \"index\": 0,\n \"message\": {\n \
+ \ \"role\": \"assistant\",\n \"content\": \"I now can give a great\
+ \ answer \\nFinal Answer: hello world\",\n \"refusal\": null,\n \
+ \ \"annotations\": []\n },\n \"logprobs\": null,\n \"\
+ finish_reason\": \"stop\"\n }\n ],\n \"usage\": {\n \"prompt_tokens\"\
+ : 157,\n \"completion_tokens\": 13,\n \"total_tokens\": 170,\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:
- CF-RAY-XXX
@@ -168,12 +212,80 @@ interactions:
code: 200
message: OK
- request:
- body: '{"events": [{"event_id": "e73c85bb-b00f-46be-b07f-cfbd398e24d9", "timestamp": "2025-11-29T03:12:24.774266+00:00", "type": "crew_kickoff_started", "event_data": {"timestamp": "2025-11-29T03:12:24.774266+00:00", "type": "crew_kickoff_started", "source_fingerprint": null, "source_type": null, "fingerprint_metadata": null, "task_id": null, "task_name": null, "agent_id": null, "agent_role": null, "crew_name": "crew", "crew": null, "inputs": null}}, {"event_id": "8d1cdbd9-17a6-499b-a0f7-66daad11da4f", "timestamp": "2025-11-29T03:12:24.776776+00:00", "type": "agent_execution_started", "event_data": {"agent_role": "Test Agent", "agent_goal": "Test goal", "agent_backstory": "Test backstory"}}, {"event_id": "8d7964bd-5e3a-4089-a792-8c63b5b3df8a", "timestamp": "2025-11-29T03:12:24.776973+00:00", "type": "llm_call_started", "event_data": {"timestamp": "2025-11-29T03:12:24.776973+00:00", "type": "llm_call_started", "source_fingerprint": null, "source_type": null, "fingerprint_metadata": null,
- "task_id": "2b5b469c-61f1-4439-bb50-1bb59a539305", "task_name": "Say hello to the world", "agent_id": "589d6b85-044a-4df7-b0b9-e4aafeb642a9", "agent_role": "Test Agent", "from_task": null, "from_agent": null, "model": "gpt-4o-mini", "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: Say hello to the world\n\nThis is the expected criteria for your final answer: hello world\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:"}],
- "tools": null, "callbacks": [""], "available_functions": null}}, {"event_id": "3d4ec456-f3e3-4dc5-93a1-ac42a5baa307", "timestamp": "2025-11-29T03:12:26.197379+00:00", "type": "llm_call_completed", "event_data": {"timestamp": "2025-11-29T03:12:26.197379+00:00", "type": "llm_call_completed", "source_fingerprint": null, "source_type": null, "fingerprint_metadata": null, "task_id": "2b5b469c-61f1-4439-bb50-1bb59a539305", "task_name": "Say hello to the world", "agent_id": "589d6b85-044a-4df7-b0b9-e4aafeb642a9", "agent_role": "Test Agent", "from_task": null, "from_agent": null, "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: Say hello to the world\n\nThis is the expected criteria for your final answer: hello world\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:"}], "response": "I now can give a great answer \nFinal Answer: hello world", "call_type": "", "model": "gpt-4o-mini"}}, {"event_id": "b3621b9b-6034-4ed7-8ea8-435a6359e733", "timestamp": "2025-11-29T03:12:26.197544+00:00", "type": "agent_execution_completed", "event_data": {"agent_role": "Test Agent", "agent_goal": "Test goal", "agent_backstory": "Test backstory"}}, {"event_id": "d0802db5-cb55-4913-ad79-deed426b286b", "timestamp": "2025-11-29T03:12:26.197674+00:00", "type": "task_completed", "event_data": {"task_description":
- "Say hello to the world", "task_name": "Say hello to the world", "task_id": "2b5b469c-61f1-4439-bb50-1bb59a539305", "output_raw": "hello world", "output_format": "OutputFormat.RAW", "agent_role": "Test Agent"}}, {"event_id": "5dd064ff-f773-4fca-b3d9-624dde505177", "timestamp": "2025-11-29T03:12:26.199670+00:00", "type": "crew_kickoff_completed", "event_data": {"timestamp": "2025-11-29T03:12:26.199670+00:00", "type": "crew_kickoff_completed", "source_fingerprint": null, "source_type": null, "fingerprint_metadata": null, "task_id": null, "task_name": null, "agent_id": null, "agent_role": null, "crew_name": "crew", "crew": null, "output": {"description": "Say hello to the world", "name": "Say hello to the world", "expected_output": "hello world", "summary": "Say hello to the world...", "raw": "hello world", "pydantic": null, "json_dict": null, "agent": "Test Agent", "output_format": "raw", "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: Say hello to the world\\n\\nThis is the expected criteria for your final answer: hello world\\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:''"}, {"role": "''assistant''", "content": "''I now can give a great answer \\nFinal Answer: hello world''"}]}, "total_tokens": 170}}], "batch_metadata": {"events_count": 7, "batch_sequence": 1, "is_final_batch": false}}'
+ body: '{"events": [{"event_id": "e73c85bb-b00f-46be-b07f-cfbd398e24d9", "timestamp":
+ "2025-11-29T03:12:24.774266+00:00", "type": "crew_kickoff_started", "event_data":
+ {"timestamp": "2025-11-29T03:12:24.774266+00:00", "type": "crew_kickoff_started",
+ "source_fingerprint": null, "source_type": null, "fingerprint_metadata": null,
+ "task_id": null, "task_name": null, "agent_id": null, "agent_role": null, "crew_name":
+ "crew", "crew": null, "inputs": null}}, {"event_id": "8d1cdbd9-17a6-499b-a0f7-66daad11da4f",
+ "timestamp": "2025-11-29T03:12:24.776776+00:00", "type": "agent_execution_started",
+ "event_data": {"agent_role": "Test Agent", "agent_goal": "Test goal", "agent_backstory":
+ "Test backstory"}}, {"event_id": "8d7964bd-5e3a-4089-a792-8c63b5b3df8a", "timestamp":
+ "2025-11-29T03:12:24.776973+00:00", "type": "llm_call_started", "event_data":
+ {"timestamp": "2025-11-29T03:12:24.776973+00:00", "type": "llm_call_started",
+ "source_fingerprint": null, "source_type": null, "fingerprint_metadata": null,
+ "task_id": "2b5b469c-61f1-4439-bb50-1bb59a539305", "task_name": "Say hello to
+ the world", "agent_id": "589d6b85-044a-4df7-b0b9-e4aafeb642a9", "agent_role":
+ "Test Agent", "from_task": null, "from_agent": null, "model": "gpt-4o-mini",
+ "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: Say hello to
+ the world\n\nThis is the expected criteria for your final answer: hello world\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:"}], "tools": null, "callbacks":
+ [""],
+ "available_functions": null}}, {"event_id": "3d4ec456-f3e3-4dc5-93a1-ac42a5baa307",
+ "timestamp": "2025-11-29T03:12:26.197379+00:00", "type": "llm_call_completed",
+ "event_data": {"timestamp": "2025-11-29T03:12:26.197379+00:00", "type": "llm_call_completed",
+ "source_fingerprint": null, "source_type": null, "fingerprint_metadata": null,
+ "task_id": "2b5b469c-61f1-4439-bb50-1bb59a539305", "task_name": "Say hello to
+ the world", "agent_id": "589d6b85-044a-4df7-b0b9-e4aafeb642a9", "agent_role":
+ "Test Agent", "from_task": null, "from_agent": null, "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: Say hello to the world\n\nThis is the expected
+ criteria for your final answer: hello world\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:"}], "response": "I now can give a great answer \nFinal Answer:
+ hello world", "call_type": "", "model":
+ "gpt-4o-mini"}}, {"event_id": "b3621b9b-6034-4ed7-8ea8-435a6359e733", "timestamp":
+ "2025-11-29T03:12:26.197544+00:00", "type": "agent_execution_completed", "event_data":
+ {"agent_role": "Test Agent", "agent_goal": "Test goal", "agent_backstory": "Test
+ backstory"}}, {"event_id": "d0802db5-cb55-4913-ad79-deed426b286b", "timestamp":
+ "2025-11-29T03:12:26.197674+00:00", "type": "task_completed", "event_data":
+ {"task_description": "Say hello to the world", "task_name": "Say hello to the
+ world", "task_id": "2b5b469c-61f1-4439-bb50-1bb59a539305", "output_raw": "hello
+ world", "output_format": "OutputFormat.RAW", "agent_role": "Test Agent"}}, {"event_id":
+ "5dd064ff-f773-4fca-b3d9-624dde505177", "timestamp": "2025-11-29T03:12:26.199670+00:00",
+ "type": "crew_kickoff_completed", "event_data": {"timestamp": "2025-11-29T03:12:26.199670+00:00",
+ "type": "crew_kickoff_completed", "source_fingerprint": null, "source_type":
+ null, "fingerprint_metadata": null, "task_id": null, "task_name": null, "agent_id":
+ null, "agent_role": null, "crew_name": "crew", "crew": null, "output": {"description":
+ "Say hello to the world", "name": "Say hello to the world", "expected_output":
+ "hello world", "summary": "Say hello to the world...", "raw": "hello world",
+ "pydantic": null, "json_dict": null, "agent": "Test Agent", "output_format":
+ "raw", "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: Say hello to the world\\n\\nThis is the expected criteria
+ for your final answer: hello world\\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:''"}, {"role": "''assistant''", "content": "''I now can give
+ a great answer \\nFinal Answer: hello world''"}]}, "total_tokens": 170}}],
+ "batch_metadata": {"events_count": 7, "batch_sequence": 1, "is_final_batch":
+ false}}'
headers:
Accept:
- '*/*'
diff --git a/lib/crewai/tests/cassettes/tracing/TestTraceListenerSetup.test_trace_listener_with_authenticated_user.yaml b/lib/crewai/tests/cassettes/tracing/TestTraceListenerSetup.test_trace_listener_with_authenticated_user.yaml
index 7cdb413b4..aff3bee82 100644
--- a/lib/crewai/tests/cassettes/tracing/TestTraceListenerSetup.test_trace_listener_with_authenticated_user.yaml
+++ b/lib/crewai/tests/cassettes/tracing/TestTraceListenerSetup.test_trace_listener_with_authenticated_user.yaml
@@ -1,6 +1,34 @@
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: Say hello to the world\n\nThis is the expected criteria for your final answer: hello world\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:"]}'
+ body: '{}'
+ headers:
+ accept:
+ - application/json
+ content-type:
+ - application/json
+ method: POST
+ uri: https://fake.crewai.com/crewai_plus/api/v1/tracing/batches
+ response:
+ body:
+ string: '{"trace_id":"test-trace-id-12345","ephemeral_trace_id":"test-ephemeral-id-12345","status":"initialized"}'
+ headers:
+ Content-Type:
+ - application/json
+ 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: Say hello to
+ the world\n\nThis is the expected criteria for your final answer: hello world\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
@@ -13,7 +41,8 @@ interactions:
content-type:
- application/json
cookie:
- - __cf_bm=oA9oTa3cE0ZaEUDRf0hCpnarSAQKzrVUhl6qDS4j09w-1755302115-1.0.1.1-gUUDl4ZqvBQkg7244DTwOmSiDUT2z_AiQu0P1xUaABjaufSpZuIlI5G0H7OSnW.ldypvpxjj45NGWesJ62M_2U7r20tHz_gMmDFw6D5ZiNc; _cfuvid=ICenEGMmOE5jaOjwD30bAOwrF8.XRbSIKTBl1EyWs0o-1755302115700-0.0.1.1-604800000
+ - __cf_bm=oA9oTa3cE0ZaEUDRf0hCpnarSAQKzrVUhl6qDS4j09w-1755302115-1.0.1.1-gUUDl4ZqvBQkg7244DTwOmSiDUT2z_AiQu0P1xUaABjaufSpZuIlI5G0H7OSnW.ldypvpxjj45NGWesJ62M_2U7r20tHz_gMmDFw6D5ZiNc;
+ _cfuvid=ICenEGMmOE5jaOjwD30bAOwrF8.XRbSIKTBl1EyWs0o-1755302115700-0.0.1.1-604800000
host:
- api.openai.com
user-agent:
@@ -42,7 +71,19 @@ interactions:
uri: https://api.openai.com/v1/chat/completions
response:
body:
- string: "{\n \"id\": \"chatcmpl-C4yYNqrSmM0fkSWqb4T6tcks2vwV3\",\n \"object\": \"chat.completion\",\n \"created\": 1755302115,\n \"model\": \"gpt-4o-mini-2024-07-18\",\n \"choices\": [\n {\n \"index\": 0,\n \"message\": {\n \"role\": \"assistant\",\n \"content\": \"I now can give a great answer \\nFinal Answer: hello world\",\n \"refusal\": null,\n \"annotations\": []\n },\n \"logprobs\": null,\n \"finish_reason\": \"stop\"\n }\n ],\n \"usage\": {\n \"prompt_tokens\": 157,\n \"completion_tokens\": 13,\n \"total_tokens\": 170,\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"
+ string: "{\n \"id\": \"chatcmpl-C4yYNqrSmM0fkSWqb4T6tcks2vwV3\",\n \"object\"\
+ : \"chat.completion\",\n \"created\": 1755302115,\n \"model\": \"gpt-4o-mini-2024-07-18\"\
+ ,\n \"choices\": [\n {\n \"index\": 0,\n \"message\": {\n \
+ \ \"role\": \"assistant\",\n \"content\": \"I now can give a great\
+ \ answer \\nFinal Answer: hello world\",\n \"refusal\": null,\n \
+ \ \"annotations\": []\n },\n \"logprobs\": null,\n \"\
+ finish_reason\": \"stop\"\n }\n ],\n \"usage\": {\n \"prompt_tokens\"\
+ : 157,\n \"completion_tokens\": 13,\n \"total_tokens\": 170,\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:
- 96fc9f301bf7cf1f-SJC