litellm/scripts/lens_assets/fixtures/traces/llamaindex_swarm.json
moe-berri 22ad3c5fff
refactor(lens): connect LiteLLM to the independent Lens service (#45529)
* feat(lens): consume the independent Lens service and shared UI

* fix(lens): keep embedded setup stable and vendor UI before builds

* chore(lens): pin embedded UI provenance to published Lens source

* fix(lens): complete embedded UI extraction across CI builds

* docs(lens): record latest main and removal-boundary validation

* fix(lens): wire external chart credentials and ingestion modes

* test(lens): cover adapter failures and fix extraction CI

* docs(lens): refresh bundled chart setup instructions

* test(lens): restore gateway adapter test package marker

* build(lens): pin clean-cut UI and supported storage chart

* test(ui): await guardrail scope menu before checking options

* perf(lens): omit unused trace-team lookup from product requests

* docs(lens): record final-image adapter permission checks

* test(lens): assert delegated investigation authorization

* refactor(lens): remove copied trace runtime and preserve spend logging

* test(lens): verify independent gateway image upgrades and outages

* test(lens): pin the chart qualification database image

* fix(lens): update embedded UI metadata filters

* test: wait for Lens chart pod identity convergence

* fix(e2e): select Lens chart pods by deployment ownership

* fix(e2e): select Helm migration ownership for Lens upgrades

* test(lens): retain migration Jobs through rollout assertions

* docs(helm): require existing database for migration hooks

* test(lens): qualify release boundaries with embedded navigation update

* docs(lens): record browser qualification for embedded tabs

* fix(lens): remove unrelated CI and guardrail test changes

* test(lens): give qualification tenants unique key aliases

* feat(lens): embed the latest canonical Lens interface

* fix(lens): qualify split inference through the gateway

* fix(lens): preserve scoped auth and isolate delegated credentials

* chore(lens): remove unrelated documentation and lint changes

* fix(lens): bound concurrent forwarding buffers through response delivery

* fix(lens): preserve OAuth2 dispatch without inference policies

* chore(lens): adopt current shared onboarding UI

* fix(lens): refresh shared setup UI and review context

* fix(lens): bound uploads before gateway authentication

* docs(lens): remove extraction evidence from the gateway repo

* docs(lens): refresh shared setup prompt for paired releases
2026-10-09 16:17:05 -07:00

1883 lines
142 KiB
JSON

{
"resourceSpans": [
{
"resource": {
"attributes": [
{
"key": "telemetry.sdk.language",
"value": {
"stringValue": "python"
}
},
{
"key": "telemetry.sdk.name",
"value": {
"stringValue": "opentelemetry"
}
},
{
"key": "telemetry.sdk.version",
"value": {
"stringValue": "1.45.0"
}
},
{
"key": "service.instance.id",
"value": {
"stringValue": "904881b9-2843-4404-929b-1ef9c106340a"
}
},
{
"key": "gen_ai.agent.name",
"value": {
"stringValue": "research_agent"
}
},
{
"key": "telemetry.auto.version",
"value": {
"stringValue": "0.66b0"
}
},
{
"key": "service.name",
"value": {
"stringValue": "unknown_service:python3"
}
}
]
},
"scopeSpans": [
{
"scope": {
"name": "openinference.instrumentation.llama_index",
"version": "4.5.4"
},
"spans": [
{
"traceId": "b2a00495369de00b1b6befb7845030f2",
"spanId": "e1d7ef1a61097d4b",
"parentSpanId": "c2f4febbff5e0910",
"name": "AgentWorkflow.init_run",
"kind": 1,
"startTimeUnixNano": "1791061370990755000",
"endTimeUnixNano": "1791061371042744000",
"attributes": [
{
"key": "input.value",
"value": {
"stringValue": "{\"ctx\": \"<workflows.context.context.Context object at 0x10e04c910>\", \"ev\": \"AgentWorkflowStartEvent()\"}"
}
},
{
"key": "input.mime_type",
"value": {
"stringValue": "application/json"
}
},
{
"key": "output.value",
"value": {
"stringValue": "AgentInput(input=[ChatMessage(role=<MessageRole.USER: 'user'>, additional_kwargs={}, blocks=[TextBlock(block_type='text', text='What is an agent trace?')])], current_agent_name='research_agent')"
}
},
{
"key": "output.mime_type",
"value": {
"stringValue": "text/plain"
}
},
{
"key": "openinference.span.kind",
"value": {
"stringValue": "CHAIN"
}
}
],
"status": {
"code": 1
},
"flags": 256
},
{
"traceId": "b2a00495369de00b1b6befb7845030f2",
"spanId": "d55fe19a9ada9a23",
"parentSpanId": "c2f4febbff5e0910",
"name": "AgentWorkflow.setup_agent",
"kind": 1,
"startTimeUnixNano": "1791061371043272000",
"endTimeUnixNano": "1791061371043489000",
"attributes": [
{
"key": "input.value",
"value": {
"stringValue": "{\"ctx\": \"<workflows.context.context.Context object at 0x10dd2de00>\", \"ev\": \"AgentInput(input=[ChatMessage(role=<MessageRole.USER: 'user'>, additional_kwargs={}, blocks=[TextBlock(block_type='text', text='What is an agent trace?')])], current_agent_name='research_agent')\"}"
}
},
{
"key": "input.mime_type",
"value": {
"stringValue": "application/json"
}
},
{
"key": "output.value",
"value": {
"stringValue": "AgentSetup(input=[ChatMessage(role=<MessageRole.SYSTEM: 'system'>, additional_kwargs={}, blocks=[TextBlock(block_type='text', text='Hand off to search_agent to gather facts.')]), ChatMessage(role=<..."
}
},
{
"key": "output.mime_type",
"value": {
"stringValue": "text/plain"
}
},
{
"key": "openinference.span.kind",
"value": {
"stringValue": "CHAIN"
}
}
],
"status": {
"code": 1
},
"flags": 256
},
{
"traceId": "b2a00495369de00b1b6befb7845030f2",
"spanId": "4a7ea12842ed8be5",
"parentSpanId": "fd9f760dee9dd877",
"name": "OpenAILike._prepare_chat_with_tools",
"kind": 1,
"startTimeUnixNano": "1791061371044653000",
"endTimeUnixNano": "1791061371045286000",
"attributes": [
{
"key": "llm.model_name",
"value": {
"stringValue": "openai/gpt-6-luna"
}
},
{
"key": "llm.invocation_parameters",
"value": {
"stringValue": "{\"context_window\":3900,\"num_output\":-1,\"is_chat_model\":true,\"is_function_calling_model\":true,\"model_name\":\"openai/gpt-6-luna\"}"
}
},
{
"key": "llm.provider",
"value": {
"stringValue": "openai"
}
},
{
"key": "llm.system",
"value": {
"stringValue": "openai"
}
},
{
"key": "input.value",
"value": {
"stringValue": "{\"tools\": [\"<FunctionTool object>\"], \"user_msg\": null, \"chat_history\": [\"ChatMessage(role=<MessageRole.SYSTEM: 'system'>, additional_kwargs={}, blocks=[TextBlock(block_type='text', text='Hand off to search_agent to gather facts.')])\", \"ChatMessage(role=<MessageRole.USER: 'user'>, additional_kwargs={}, blocks=[TextBlock(block_type='text', text='What is an agent trace?')])\"], \"verbose\": false, \"allow_parallel_tool_calls\": true, \"tool_required\": false}"
}
},
{
"key": "input.mime_type",
"value": {
"stringValue": "application/json"
}
},
{
"key": "output.value",
"value": {
"stringValue": "{\"messages\": [\"ChatMessage(role=<MessageRole.SYSTEM: 'system'>, additional_kwargs={}, blocks=[TextBlock(block_type='text', text='Hand off to search_agent to gather facts.')])\", \"ChatMessage(role=<MessageRole.USER: 'user'>, additional_kwargs={}, blocks=[TextBlock(block_type='text', text='What is an agent trace?')])\"], \"tools\": [{\"type\": \"function\", \"function\": {\"name\": \"handoff\", \"description\": \"Useful for handing off to another agent.\\nIf you are currently not equipped to handle the user's request, or another agent is better suited to handle the request, please hand off to the appropriate agent.\\n\\nCurrently available agents:\\n{'search_agent': 'Gathers facts.', 'writer_agent': 'Writes the final answer.'}\\n\", \"parameters\": {\"properties\": {\"to_agent\": {\"title\": \"To Agent\", \"type\": \"string\"}, \"reason\": {\"title\": \"Reason\", \"type\": \"string\"}}, \"required\": [\"to_agent\", \"reason\"], \"type\": \"object\", \"additionalProperties\": false}, \"strict\": false}}], \"tool_choice\": \"auto\", \"parallel_tool_calls\": true}"
}
},
{
"key": "output.mime_type",
"value": {
"stringValue": "application/json"
}
},
{
"key": "openinference.span.kind",
"value": {
"stringValue": "LLM"
}
}
],
"status": {
"code": 1
},
"flags": 256
},
{
"traceId": "b2a00495369de00b1b6befb7845030f2",
"spanId": "5a1eceb1380ddc0f",
"parentSpanId": "793b736f5fea6caa",
"name": "OpenAILike.achat",
"kind": 1,
"startTimeUnixNano": "1791061371045447000",
"endTimeUnixNano": "1791061372999190000",
"attributes": [
{
"key": "llm.model_name",
"value": {
"stringValue": "openai/gpt-6-luna"
}
},
{
"key": "llm.invocation_parameters",
"value": {
"stringValue": "{\"context_window\":3900,\"num_output\":-1,\"is_chat_model\":true,\"is_function_calling_model\":true,\"model_name\":\"openai/gpt-6-luna\"}"
}
},
{
"key": "llm.provider",
"value": {
"stringValue": "openai"
}
},
{
"key": "llm.system",
"value": {
"stringValue": "openai"
}
},
{
"key": "llm.tools.0.tool.json_schema",
"value": {
"stringValue": "{\"type\": \"function\", \"function\": {\"name\": \"handoff\", \"description\": \"Useful for handing off to another agent.\\nIf you are currently not equipped to handle the user's request, or another agent is better suited to handle the request, please hand off to the appropriate agent.\\n\\nCurrently available agents:\\n{'search_agent': 'Gathers facts.', 'writer_agent': 'Writes the final answer.'}\\n\", \"parameters\": {\"properties\": {\"to_agent\": {\"title\": \"To Agent\", \"type\": \"string\"}, \"reason\": {\"title\": \"Reason\", \"type\": \"string\"}}, \"required\": [\"to_agent\", \"reason\"], \"type\": \"object\", \"additionalProperties\": false}, \"strict\": false}}"
}
},
{
"key": "input.value",
"value": {
"stringValue": "{\"messages\": [\"ChatMessage(role=<MessageRole.SYSTEM: 'system'>, additional_kwargs={}, blocks=[TextBlock(block_type='text', text='Hand off to search_agent to gather facts.')])\", \"ChatMessage(role=<MessageRole.USER: 'user'>, additional_kwargs={}, blocks=[TextBlock(block_type='text', text='What is an agent trace?')])\"], \"kwargs\": {\"tools\": [{\"type\": \"function\", \"function\": {\"name\": \"handoff\", \"description\": \"Useful for handing off to another agent.\\nIf you are currently not equipped to handle the user's request, or another agent is better suited to handle the request, please hand off to the appropriate agent.\\n\\nCurrently available agents:\\n{'search_agent': 'Gathers facts.', 'writer_agent': 'Writes the final answer.'}\\n\", \"parameters\": {\"properties\": {\"to_agent\": {\"title\": \"To Agent\", \"type\": \"string\"}, \"reason\": {\"title\": \"Reason\", \"type\": \"string\"}}, \"required\": [\"to_agent\", \"reason\"], \"type\": \"object\", \"additionalProperties\": false}, \"strict\": false}}], \"tool_choice\": \"auto\", \"parallel_tool_calls\": true}}"
}
},
{
"key": "input.mime_type",
"value": {
"stringValue": "application/json"
}
},
{
"key": "llm.input_messages.0.message.role",
"value": {
"stringValue": "system"
}
},
{
"key": "llm.input_messages.0.message.content",
"value": {
"stringValue": "Hand off to search_agent to gather facts."
}
},
{
"key": "llm.input_messages.1.message.role",
"value": {
"stringValue": "user"
}
},
{
"key": "llm.input_messages.1.message.content",
"value": {
"stringValue": "What is an agent trace?"
}
},
{
"key": "output.value",
"value": {
"stringValue": "assistant: None"
}
},
{
"key": "llm.token_count.prompt",
"value": {
"intValue": "129"
}
},
{
"key": "llm.token_count.prompt_details.cache_read",
"value": {
"intValue": "0"
}
},
{
"key": "llm.token_count.completion",
"value": {
"intValue": "51"
}
},
{
"key": "llm.token_count.completion_details.reasoning",
"value": {
"intValue": "0"
}
},
{
"key": "llm.token_count.total",
"value": {
"intValue": "180"
}
},
{
"key": "llm.output_messages.0.message.role",
"value": {
"stringValue": "assistant"
}
},
{
"key": "llm.output_messages.0.message.tool_calls.0.tool_call.id",
"value": {
"stringValue": "call_uNNvo1VxA0Cja9WAGq3md5Nf"
}
},
{
"key": "llm.output_messages.0.message.tool_calls.0.tool_call.function.name",
"value": {
"stringValue": "handoff"
}
},
{
"key": "llm.output_messages.0.message.tool_calls.0.tool_call.function.arguments",
"value": {
"stringValue": "{\"to_agent\":\"search_agent\",\"reason\":\"Gather a concise, accurate explanation of the term \u201cagent trace,\u201d noting possible meanings across AI/agent systems and any distinction from related concepts.\"}"
}
},
{
"key": "openinference.span.kind",
"value": {
"stringValue": "LLM"
}
}
],
"status": {
"code": 1
},
"flags": 256
},
{
"traceId": "b2a00495369de00b1b6befb7845030f2",
"spanId": "793b736f5fea6caa",
"parentSpanId": "fd9f760dee9dd877",
"name": "OpenAILike.achat",
"kind": 1,
"startTimeUnixNano": "1791061371045328000",
"endTimeUnixNano": "1791061372999502000",
"attributes": [
{
"key": "llm.model_name",
"value": {
"stringValue": "openai/gpt-6-luna"
}
},
{
"key": "llm.invocation_parameters",
"value": {
"stringValue": "{\"context_window\":3900,\"num_output\":-1,\"is_chat_model\":true,\"is_function_calling_model\":true,\"model_name\":\"openai/gpt-6-luna\"}"
}
},
{
"key": "llm.provider",
"value": {
"stringValue": "openai"
}
},
{
"key": "llm.system",
"value": {
"stringValue": "openai"
}
},
{
"key": "llm.tools.0.tool.json_schema",
"value": {
"stringValue": "{\"type\": \"function\", \"function\": {\"name\": \"handoff\", \"description\": \"Useful for handing off to another agent.\\nIf you are currently not equipped to handle the user's request, or another agent is better suited to handle the request, please hand off to the appropriate agent.\\n\\nCurrently available agents:\\n{'search_agent': 'Gathers facts.', 'writer_agent': 'Writes the final answer.'}\\n\", \"parameters\": {\"properties\": {\"to_agent\": {\"title\": \"To Agent\", \"type\": \"string\"}, \"reason\": {\"title\": \"Reason\", \"type\": \"string\"}}, \"required\": [\"to_agent\", \"reason\"], \"type\": \"object\", \"additionalProperties\": false}, \"strict\": false}}"
}
},
{
"key": "input.value",
"value": {
"stringValue": "{\"messages\": [\"ChatMessage(role=<MessageRole.SYSTEM: 'system'>, additional_kwargs={}, blocks=[TextBlock(block_type='text', text='Hand off to search_agent to gather facts.')])\", \"ChatMessage(role=<MessageRole.USER: 'user'>, additional_kwargs={}, blocks=[TextBlock(block_type='text', text='What is an agent trace?')])\"], \"kwargs\": {\"tools\": [{\"type\": \"function\", \"function\": {\"name\": \"handoff\", \"description\": \"Useful for handing off to another agent.\\nIf you are currently not equipped to handle the user's request, or another agent is better suited to handle the request, please hand off to the appropriate agent.\\n\\nCurrently available agents:\\n{'search_agent': 'Gathers facts.', 'writer_agent': 'Writes the final answer.'}\\n\", \"parameters\": {\"properties\": {\"to_agent\": {\"title\": \"To Agent\", \"type\": \"string\"}, \"reason\": {\"title\": \"Reason\", \"type\": \"string\"}}, \"required\": [\"to_agent\", \"reason\"], \"type\": \"object\", \"additionalProperties\": false}, \"strict\": false}}], \"tool_choice\": \"auto\", \"parallel_tool_calls\": true}}"
}
},
{
"key": "input.mime_type",
"value": {
"stringValue": "application/json"
}
},
{
"key": "output.value",
"value": {
"stringValue": "{\"message\":{\"role\":\"assistant\",\"additional_kwargs\":{\"tool_calls\":[{\"id\":\"call_uNNvo1VxA0Cja9WAGq3md5Nf\",\"function\":{\"arguments\":\"{\\\"to_agent\\\":\\\"search_agent\\\",\\\"reason\\\":\\\"Gather a concise, accurate explanation of the term \u201cagent trace,\u201d noting possible meanings across AI/agent systems and any distinction from related concepts.\\\"}\",\"name\":\"handoff\"},\"type\":\"function\",\"index\":0}]},\"blocks\":[{\"tool_call_id\":\"call_uNNvo1VxA0Cja9WAGq3md5Nf\",\"tool_name\":\"handoff\",\"tool_kwargs\":\"{\\\"to_agent\\\":\\\"search_agent\\\",\\\"reason\\\":\\\"Gather a concise, accurate explanation of the term \u201cagent trace,\u201d noting possible meanings across AI/agent systems and any distinction from related concepts.\\\"}\"}]},\"raw\":{\"id\":\"resp_03b44f13b2d156d0006ac16d7b618c87d0bf7313d60c70073b\",\"choices\":[{\"finish_reason\":\"tool_calls\",\"index\":0,\"message\":{\"content\":null,\"role\":\"assistant\",\"tool_calls\":[{\"id\":\"call_uNNvo1VxA0Cja9WAGq3md5Nf\",\"function\":{\"arguments\":\"{\\\"to_agent\\\":\\\"search_agent\\\",\\\"reason\\\":\\\"Gather a concise, accurate explanation of the term \u201cagent trace,\u201d noting possible meanings across AI/agent systems and any distinction from related concepts.\\\"}\",\"name\":\"handoff\"},\"type\":\"function\",\"index\":0}]}}],\"created\":1791061371,\"model\":\"openai/gpt-6-luna\",\"object\":\"chat.completion\",\"service_tier\":\"default\",\"usage\":{\"completion_tokens\":51,\"prompt_tokens\":129,\"total_tokens\":180,\"completion_tokens_details\":{\"reasoning_tokens\":0},\"prompt_tokens_details\":{\"cache_write_tokens\":0,\"cached_tokens\":0,\"cache_creation_tokens\":0}},\"access_programs\":{\"cyber\":\"daybreak_blue\"},\"billing\":{\"payer\":\"developer\"},\"frequency_penalty\":0.0,\"presence_penalty\":0.0,\"tool_usage\":{\"image_gen\":{\"input_tokens\":0,\"input_tokens_details\":{\"image_tokens\":0,\"text_tokens\":0},\"output_tokens\":0,\"output_tokens_details\":{\"image_tokens\":0,\"text_tokens\":0},\"total_tokens\":0},\"web_search\":{\"num_requests\":0}}},\"logprobs\":null,\"additional_kwargs\":{\"prompt_tokens\":129,\"completion_tokens\":51,\"total_tokens\":180}}"
}
},
{
"key": "output.mime_type",
"value": {
"stringValue": "application/json"
}
},
{
"key": "openinference.span.kind",
"value": {
"stringValue": "LLM"
}
}
],
"status": {
"code": 1
},
"flags": 256
},
{
"traceId": "b2a00495369de00b1b6befb7845030f2",
"spanId": "fd9f760dee9dd877",
"parentSpanId": "c2f4febbff5e0910",
"name": "AgentWorkflow.run_agent_step",
"kind": 1,
"startTimeUnixNano": "1791061371043813000",
"endTimeUnixNano": "1791061372999818000",
"attributes": [
{
"key": "input.value",
"value": {
"stringValue": "{\"ctx\": \"<workflows.context.context.Context object at 0x10dd2e520>\", \"ev\": \"AgentSetup(input=[ChatMessage(role=<MessageRole.SYSTEM: 'system'>, additional_kwargs={}, blocks=[TextBlock(block_type='text', text='Hand off to search_agent to gather facts.')]), ChatMessage(role=<MessageRole.USER: 'user'>, additional_kwargs={}, blocks=[TextBlock(block_type='text', text='What is an agent trace?')])], current_agent_name='research_agent')\"}"
}
},
{
"key": "input.mime_type",
"value": {
"stringValue": "application/json"
}
},
{
"key": "output.value",
"value": {
"stringValue": "AgentOutput(response=ChatMessage(role=<MessageRole.ASSISTANT: 'assistant'>, additional_kwargs={'tool_calls': [ChatCompletionMessageFunctionToolCall(id='call_uNNvo1VxA0Cja9WAGq3md5Nf', function=Func..."
}
},
{
"key": "output.mime_type",
"value": {
"stringValue": "text/plain"
}
},
{
"key": "openinference.span.kind",
"value": {
"stringValue": "CHAIN"
}
}
],
"status": {
"code": 1
},
"flags": 256
},
{
"traceId": "b2a00495369de00b1b6befb7845030f2",
"spanId": "b303e11936ee0587",
"parentSpanId": "c2f4febbff5e0910",
"name": "AgentWorkflow.parse_agent_output",
"kind": 1,
"startTimeUnixNano": "1791061373000750000",
"endTimeUnixNano": "1791061373001323000",
"attributes": [
{
"key": "input.value",
"value": {
"stringValue": "{\"ctx\": \"<workflows.context.context.Context object at 0x10f3b3bf0>\", \"ev\": \"AgentOutput(response=ChatMessage(role=<MessageRole.ASSISTANT: 'assistant'>, additional_kwargs={'tool_calls': [ChatCompletionMessageFunctionToolCall(id='call_uNNvo1VxA0Cja9WAGq3md5Nf', function=Function(arguments='{\\\"to_agent\\\":\\\"search_agent\\\",\\\"reason\\\":\\\"Gather a concise, accurate explanation of the term \u201cagent trace,\u201d noting possible meanings across AI/agent systems and any distinction from related concepts.\\\"}', name='handoff'), type='function', index=0)]}, blocks=[ToolCallBlock(block_type='tool_call', tool_call_id='call_uNNvo1VxA0Cja9WAGq3md5Nf', tool_name='handoff', tool_kwargs='{\\\"to_agent\\\":\\\"search_agent\\\",\\\"reason\\\":\\\"Gather a concise, accurate explanation of the term \u201cagent trace,\u201d noting possible meanings across AI/agent systems and any distinction from related concepts.\\\"}')]), structured_response=None, current_agent_name='research_agent', raw={'id': 'resp_03b44f13b2d156d0006ac16d7b618c87d0bf7313d60c70073b', 'choices': [{'finish_reason': 'tool_calls', 'index': 0, 'logprobs': None, 'message': {'content': None, 'refusal': None, 'role': 'assistant', 'annotations': None, 'audio': None, 'function_call': None, 'tool_calls': [{'id': 'call_uNNvo1VxA0Cja9WAGq3md5Nf', 'function': {'arguments': '{\\\"to_agent\\\":\\\"search_agent\\\",\\\"reason\\\":\\\"Gather a concise, accurate explanation of the term \u201cagent trace,\u201d noting possible meanings across AI/agent systems and any distinction from related concepts.\\\"}', 'name': 'handoff'}, 'type': 'function', 'index': 0}]}}], 'created': 1791061371, 'model': 'openai/gpt-6-luna', 'object': 'chat.completion', 'moderation': None, 'service_tier': 'default', 'system_fingerprint': None, 'usage': {'completion_tokens': 51, 'prompt_tokens': 129, 'total_tokens': 180, 'completion_tokens_details': {'accepted_prediction_tokens': None, 'audio_tokens': None, 'reasoning_tokens': 0, 'rejected_prediction_tokens': None}, 'prompt_tokens_details': {'audio_tokens': None, 'cache_write_tokens': 0, 'cached_tokens': 0, 'cache_creation_tokens': 0}}, 'access_programs': {'cyber': 'daybreak_blue'}, 'billing': {'payer': 'developer'}, 'frequency_penalty': 0.0, 'presence_penalty': 0.0, 'tool_usage': {'image_gen': {'input_tokens': 0, 'input_tokens_details': {'image_tokens': 0, 'text_tokens': 0}, 'output_tokens': 0, 'output_tokens_details': {'image_tokens': 0, 'text_tokens': 0}, 'total_tokens': 0}, 'web_search': {'num_requests': 0}}}, tool_calls=[ToolSelection(tool_id='call_uNNvo1VxA0Cja9WAGq3md5Nf', tool_name='handoff', tool_kwargs={'to_agent': 'search_agent', 'reason': 'Gather a concise, accurate explanation of the term \u201cagent trace,\u201d noting possible meanings across AI/agent systems and any distinction from related concepts.'})], retry_messages=[])\"}"
}
},
{
"key": "input.mime_type",
"value": {
"stringValue": "application/json"
}
},
{
"key": "openinference.span.kind",
"value": {
"stringValue": "CHAIN"
}
}
],
"status": {
"code": 1
},
"flags": 256
},
{
"traceId": "b2a00495369de00b1b6befb7845030f2",
"spanId": "98191b02af8081c3",
"parentSpanId": "f6e427095785db32",
"name": "FunctionTool.acall",
"kind": 1,
"startTimeUnixNano": "1791061373002765000",
"endTimeUnixNano": "1791061373003230000",
"attributes": [
{
"key": "tool.description",
"value": {
"stringValue": "Useful for handing off to another agent.\nIf you are currently not equipped to handle the user's request, or another agent is better suited to handle the request, please hand off to the appropriate agent.\n\nCurrently available agents:\n{'search_agent': 'Gathers facts.', 'writer_agent': 'Writes the final answer.'}\n"
}
},
{
"key": "tool.name",
"value": {
"stringValue": "handoff"
}
},
{
"key": "tool.parameters",
"value": {
"stringValue": "{\"properties\": {\"to_agent\": {\"title\": \"To Agent\", \"type\": \"string\"}, \"reason\": {\"title\": \"Reason\", \"type\": \"string\"}}, \"required\": [\"to_agent\", \"reason\"], \"type\": \"object\"}"
}
},
{
"key": "input.value",
"value": {
"stringValue": "{\"kwargs\": {\"to_agent\": \"search_agent\", \"reason\": \"Gather a concise, accurate explanation of the term \u201cagent trace,\u201d noting possible meanings across AI/agent systems and any distinction from related concepts.\", \"ctx\": \"<workflows.context.context.Context object at 0x10e02d590>\"}}"
}
},
{
"key": "input.mime_type",
"value": {
"stringValue": "application/json"
}
},
{
"key": "output.value",
"value": {
"stringValue": "{\"blocks\":[{\"text\":\"Agent search_agent is now handling the request due to the following reason: Gather a concise, accurate explanation of the term \u201cagent trace,\u201d noting possible meanings across AI/agent systems and any distinction from related concepts..\\nPlease continue with the current request.\"}],\"tool_name\":\"handoff\",\"raw_input\":{\"args\":[],\"kwargs\":{\"to_agent\":\"search_agent\",\"reason\":\"Gather a concise, accurate explanation of the term \u201cagent trace,\u201d noting possible meanings across AI/agent systems and any distinction from related concepts.\"}},\"raw_output\":\"Agent search_agent is now handling the request due to the following reason: Gather a concise, accurate explanation of the term \u201cagent trace,\u201d noting possible meanings across AI/agent systems and any distinction from related concepts..\\nPlease continue with the current request.\",\"is_error\":false}"
}
},
{
"key": "output.mime_type",
"value": {
"stringValue": "application/json"
}
},
{
"key": "openinference.span.kind",
"value": {
"stringValue": "TOOL"
}
}
],
"status": {
"code": 1
},
"flags": 256
},
{
"traceId": "b2a00495369de00b1b6befb7845030f2",
"spanId": "f6e427095785db32",
"parentSpanId": "c2f4febbff5e0910",
"name": "AgentWorkflow.call_tool",
"kind": 1,
"startTimeUnixNano": "1791061373001941000",
"endTimeUnixNano": "1791061373003335000",
"attributes": [
{
"key": "input.value",
"value": {
"stringValue": "{\"ctx\": \"<workflows.context.context.Context object at 0x10e02d590>\", \"ev\": \"ToolCall(tool_name='handoff', tool_kwargs={'to_agent': 'search_agent', 'reason': 'Gather a concise, accurate explanation of the term \u201cagent trace,\u201d noting possible meanings across AI/agent systems and any distinction from related concepts.'}, tool_id='call_uNNvo1VxA0Cja9WAGq3md5Nf')\"}"
}
},
{
"key": "input.mime_type",
"value": {
"stringValue": "application/json"
}
},
{
"key": "output.value",
"value": {
"stringValue": "ToolCallResult(tool_name='handoff', tool_kwargs={'to_agent': 'search_agent', 'reason': 'Gather a concise, accurate explanation of the term \u201cagent trace,\u201d noting possible meanings across AI/agent sy..."
}
},
{
"key": "output.mime_type",
"value": {
"stringValue": "text/plain"
}
},
{
"key": "openinference.span.kind",
"value": {
"stringValue": "CHAIN"
}
}
],
"status": {
"code": 1
},
"flags": 256
},
{
"traceId": "b2a00495369de00b1b6befb7845030f2",
"spanId": "4f0624623c684d2a",
"parentSpanId": "c2f4febbff5e0910",
"name": "AgentWorkflow.aggregate_tool_results",
"kind": 1,
"startTimeUnixNano": "1791061373003765000",
"endTimeUnixNano": "1791061373004396000",
"attributes": [
{
"key": "input.value",
"value": {
"stringValue": "{\"ctx\": \"<workflows.context.context.Context object at 0x10f36b130>\", \"ev\": \"ToolCallResult(tool_name='handoff', tool_kwargs={'to_agent': 'search_agent', 'reason': 'Gather a concise, accurate explanation of the term \u201cagent trace,\u201d noting possible meanings across AI/agent systems and any distinction from related concepts.'}, tool_id='call_uNNvo1VxA0Cja9WAGq3md5Nf', tool_output=ToolOutput(blocks=[TextBlock(block_type='text', text='Agent search_agent is now handling the request due to the following reason: Gather a concise, accurate explanation of the term \u201cagent trace,\u201d noting possible meanings across AI/agent systems and any distinction from related concepts..\\\\nPlease continue with the current request.')], tool_name='handoff', raw_input={'args': (), 'kwargs': {'to_agent': 'search_agent', 'reason': 'Gather a concise, accurate explanation of the term \u201cagent trace,\u201d noting possible meanings across AI/agent systems and any distinction from related concepts.'}}, raw_output='Agent search_agent is now handling the request due to the following reason: Gather a concise, accurate explanation of the term \u201cagent trace,\u201d noting possible meanings across AI/agent systems and any distinction from related concepts..\\\\nPlease continue with the current request.', is_error=False), return_direct=True)\"}"
}
},
{
"key": "input.mime_type",
"value": {
"stringValue": "application/json"
}
},
{
"key": "output.value",
"value": {
"stringValue": "AgentInput(input=[ChatMessage(role=<MessageRole.USER: 'user'>, additional_kwargs={}, blocks=[TextBlock(block_type='text', text='What is an agent trace?')]), ChatMessage(role=<MessageRole.ASSISTANT:..."
}
},
{
"key": "output.mime_type",
"value": {
"stringValue": "text/plain"
}
},
{
"key": "openinference.span.kind",
"value": {
"stringValue": "CHAIN"
}
}
],
"status": {
"code": 1
},
"flags": 256
},
{
"traceId": "b2a00495369de00b1b6befb7845030f2",
"spanId": "7b0f015904c970d7",
"parentSpanId": "c2f4febbff5e0910",
"name": "AgentWorkflow.setup_agent",
"kind": 1,
"startTimeUnixNano": "1791061373004764000",
"endTimeUnixNano": "1791061373004916000",
"attributes": [
{
"key": "input.value",
"value": {
"stringValue": "{\"ctx\": \"<workflows.context.context.Context object at 0x10f431750>\", \"ev\": \"AgentInput(input=[ChatMessage(role=<MessageRole.USER: 'user'>, additional_kwargs={}, blocks=[TextBlock(block_type='text', text='What is an agent trace?')]), ChatMessage(role=<MessageRole.ASSISTANT: 'assistant'>, additional_kwargs={'tool_calls': [ChatCompletionMessageFunctionToolCall(id='call_uNNvo1VxA0Cja9WAGq3md5Nf', function=Function(arguments='{\\\"to_agent\\\":\\\"search_agent\\\",\\\"reason\\\":\\\"Gather a concise, accurate explanation of the term \u201cagent trace,\u201d noting possible meanings across AI/agent systems and any distinction from related concepts.\\\"}', name='handoff'), type='function', index=0)]}, blocks=[ToolCallBlock(block_type='tool_call', tool_call_id='call_uNNvo1VxA0Cja9WAGq3md5Nf', tool_name='handoff', tool_kwargs='{\\\"to_agent\\\":\\\"search_agent\\\",\\\"reason\\\":\\\"Gather a concise, accurate explanation of the term \u201cagent trace,\u201d noting possible meanings across AI/agent systems and any distinction from related concepts.\\\"}')]), ChatMessage(role=<MessageRole.TOOL: 'tool'>, additional_kwargs={'tool_call_id': 'call_uNNvo1VxA0Cja9WAGq3md5Nf'}, blocks=[TextBlock(block_type='text', text='Agent search_agent is now handling the request due to the following reason: Gather a concise, accurate explanation of the term \u201cagent trace,\u201d noting possible meanings across AI/agent systems and any distinction from related concepts..\\\\nPlease continue with the current request.')])], current_agent_name='search_agent')\"}"
}
},
{
"key": "input.mime_type",
"value": {
"stringValue": "application/json"
}
},
{
"key": "output.value",
"value": {
"stringValue": "AgentSetup(input=[4 items], current_agent_name='search_agent')"
}
},
{
"key": "output.mime_type",
"value": {
"stringValue": "text/plain"
}
},
{
"key": "openinference.span.kind",
"value": {
"stringValue": "CHAIN"
}
}
],
"status": {
"code": 1
},
"flags": 256
},
{
"traceId": "b2a00495369de00b1b6befb7845030f2",
"spanId": "6ed0d0571b6349d8",
"parentSpanId": "eb1a17544c97ab80",
"name": "OpenAILike._prepare_chat_with_tools",
"kind": 1,
"startTimeUnixNano": "1791061373005561000",
"endTimeUnixNano": "1791061373005879000",
"attributes": [
{
"key": "llm.model_name",
"value": {
"stringValue": "openai/gpt-6-luna"
}
},
{
"key": "llm.invocation_parameters",
"value": {
"stringValue": "{\"context_window\":3900,\"num_output\":-1,\"is_chat_model\":true,\"is_function_calling_model\":true,\"model_name\":\"openai/gpt-6-luna\"}"
}
},
{
"key": "llm.provider",
"value": {
"stringValue": "openai"
}
},
{
"key": "llm.system",
"value": {
"stringValue": "openai"
}
},
{
"key": "input.value",
"value": {
"stringValue": "{\"tools\": [\"<FunctionTool object>\"], \"user_msg\": null, \"chat_history\": [\"ChatMessage(role=<MessageRole.SYSTEM: 'system'>, additional_kwargs={}, blocks=[TextBlock(block_type='text', text='List key facts, then hand off to writer_agent.')])\", \"ChatMessage(role=<MessageRole.USER: 'user'>, additional_kwargs={}, blocks=[TextBlock(block_type='text', text='What is an agent trace?')])\", \"ChatMessage(role=<MessageRole.ASSISTANT: 'assistant'>, additional_kwargs={'tool_calls': [ChatCompletionMessageFunctionToolCall(id='call_uNNvo1VxA0Cja9WAGq3md5Nf', function=Function(arguments='{\\\"to_agent\\\":\\\"search_agent\\\",\\\"reason\\\":\\\"Gather a concise, accurate explanation of the term \u201cagent trace,\u201d noting possible meanings across AI/agent systems and any distinction from related concepts.\\\"}', name='handoff'), type='function', index=0)]}, blocks=[ToolCallBlock(block_type='tool_call', tool_call_id='call_uNNvo1VxA0Cja9WAGq3md5Nf', tool_name='handoff', tool_kwargs='{\\\"to_agent\\\":\\\"search_agent\\\",\\\"reason\\\":\\\"Gather a concise, accurate explanation of the term \u201cagent trace,\u201d noting possible meanings across AI/agent systems and any distinction from related concepts.\\\"}')])\", \"ChatMessage(role=<MessageRole.TOOL: 'tool'>, additional_kwargs={'tool_call_id': 'call_uNNvo1VxA0Cja9WAGq3md5Nf'}, blocks=[TextBlock(block_type='text', text='Agent search_agent is now handling the request due to the following reason: Gather a concise, accurate explanation of the term \u201cagent trace,\u201d noting possible meanings across AI/agent systems and any distinction from related concepts..\\\\nPlease continue with the current request.')])\"], \"verbose\": false, \"allow_parallel_tool_calls\": true, \"tool_required\": false}"
}
},
{
"key": "input.mime_type",
"value": {
"stringValue": "application/json"
}
},
{
"key": "output.value",
"value": {
"stringValue": "{\"messages\": [\"ChatMessage(role=<MessageRole.SYSTEM: 'system'>, additional_kwargs={}, blocks=[TextBlock(block_type='text', text='List key facts, then hand off to writer_agent.')])\", \"ChatMessage(role=<MessageRole.USER: 'user'>, additional_kwargs={}, blocks=[TextBlock(block_type='text', text='What is an agent trace?')])\", \"ChatMessage(role=<MessageRole.ASSISTANT: 'assistant'>, additional_kwargs={'tool_calls': [ChatCompletionMessageFunctionToolCall(id='call_uNNvo1VxA0Cja9WAGq3md5Nf', function=Function(arguments='{\\\"to_agent\\\":\\\"search_agent\\\",\\\"reason\\\":\\\"Gather a concise, accurate explanation of the term \u201cagent trace,\u201d noting possible meanings across AI/agent systems and any distinction from related concepts.\\\"}', name='handoff'), type='function', index=0)]}, blocks=[ToolCallBlock(block_type='tool_call', tool_call_id='call_uNNvo1VxA0Cja9WAGq3md5Nf', tool_name='handoff', tool_kwargs='{\\\"to_agent\\\":\\\"search_agent\\\",\\\"reason\\\":\\\"Gather a concise, accurate explanation of the term \u201cagent trace,\u201d noting possible meanings across AI/agent systems and any distinction from related concepts.\\\"}')])\", \"ChatMessage(role=<MessageRole.TOOL: 'tool'>, additional_kwargs={'tool_call_id': 'call_uNNvo1VxA0Cja9WAGq3md5Nf'}, blocks=[TextBlock(block_type='text', text='Agent search_agent is now handling the request due to the following reason: Gather a concise, accurate explanation of the term \u201cagent trace,\u201d noting possible meanings across AI/agent systems and any distinction from related concepts..\\\\nPlease continue with the current request.')])\"], \"tools\": [{\"type\": \"function\", \"function\": {\"name\": \"handoff\", \"description\": \"Useful for handing off to another agent.\\nIf you are currently not equipped to handle the user's request, or another agent is better suited to handle the request, please hand off to the appropriate agent.\\n\\nCurrently available agents:\\n{'writer_agent': 'Writes the final answer.'}\\n\", \"parameters\": {\"properties\": {\"to_agent\": {\"title\": \"To Agent\", \"type\": \"string\"}, \"reason\": {\"title\": \"Reason\", \"type\": \"string\"}}, \"required\": [\"to_agent\", \"reason\"], \"type\": \"object\", \"additionalProperties\": false}, \"strict\": false}}], \"tool_choice\": \"auto\", \"parallel_tool_calls\": true}"
}
},
{
"key": "output.mime_type",
"value": {
"stringValue": "application/json"
}
},
{
"key": "openinference.span.kind",
"value": {
"stringValue": "LLM"
}
}
],
"status": {
"code": 1
},
"flags": 256
}
]
}
]
},
{
"resource": {
"attributes": [
{
"key": "telemetry.sdk.language",
"value": {
"stringValue": "python"
}
},
{
"key": "telemetry.sdk.name",
"value": {
"stringValue": "opentelemetry"
}
},
{
"key": "telemetry.sdk.version",
"value": {
"stringValue": "1.45.0"
}
},
{
"key": "service.instance.id",
"value": {
"stringValue": "904881b9-2843-4404-929b-1ef9c106340a"
}
},
{
"key": "gen_ai.agent.name",
"value": {
"stringValue": "research_agent"
}
},
{
"key": "telemetry.auto.version",
"value": {
"stringValue": "0.66b0"
}
},
{
"key": "service.name",
"value": {
"stringValue": "unknown_service:python3"
}
}
]
},
"scopeSpans": [
{
"scope": {
"name": "openinference.instrumentation.llama_index",
"version": "4.5.4"
},
"spans": [
{
"traceId": "b2a00495369de00b1b6befb7845030f2",
"spanId": "b7a387dc0df243cc",
"parentSpanId": "60063425126090a6",
"name": "OpenAILike.achat",
"kind": 1,
"startTimeUnixNano": "1791061373006028000",
"endTimeUnixNano": "1791061376588340000",
"attributes": [
{
"key": "llm.model_name",
"value": {
"stringValue": "openai/gpt-6-luna"
}
},
{
"key": "llm.invocation_parameters",
"value": {
"stringValue": "{\"context_window\":3900,\"num_output\":-1,\"is_chat_model\":true,\"is_function_calling_model\":true,\"model_name\":\"openai/gpt-6-luna\"}"
}
},
{
"key": "llm.provider",
"value": {
"stringValue": "openai"
}
},
{
"key": "llm.system",
"value": {
"stringValue": "openai"
}
},
{
"key": "llm.tools.0.tool.json_schema",
"value": {
"stringValue": "{\"type\": \"function\", \"function\": {\"name\": \"handoff\", \"description\": \"Useful for handing off to another agent.\\nIf you are currently not equipped to handle the user's request, or another agent is better suited to handle the request, please hand off to the appropriate agent.\\n\\nCurrently available agents:\\n{'writer_agent': 'Writes the final answer.'}\\n\", \"parameters\": {\"properties\": {\"to_agent\": {\"title\": \"To Agent\", \"type\": \"string\"}, \"reason\": {\"title\": \"Reason\", \"type\": \"string\"}}, \"required\": [\"to_agent\", \"reason\"], \"type\": \"object\", \"additionalProperties\": false}, \"strict\": false}}"
}
},
{
"key": "input.value",
"value": {
"stringValue": "{\"messages\": [\"ChatMessage(role=<MessageRole.SYSTEM: 'system'>, additional_kwargs={}, blocks=[TextBlock(block_type='text', text='List key facts, then hand off to writer_agent.')])\", \"ChatMessage(role=<MessageRole.USER: 'user'>, additional_kwargs={}, blocks=[TextBlock(block_type='text', text='What is an agent trace?')])\", \"ChatMessage(role=<MessageRole.ASSISTANT: 'assistant'>, additional_kwargs={'tool_calls': [ChatCompletionMessageFunctionToolCall(id='call_uNNvo1VxA0Cja9WAGq3md5Nf', function=Function(arguments='{\\\"to_agent\\\":\\\"search_agent\\\",\\\"reason\\\":\\\"Gather a concise, accurate explanation of the term \u201cagent trace,\u201d noting possible meanings across AI/agent systems and any distinction from related concepts.\\\"}', name='handoff'), type='function', index=0)]}, blocks=[ToolCallBlock(block_type='tool_call', tool_call_id='call_uNNvo1VxA0Cja9WAGq3md5Nf', tool_name='handoff', tool_kwargs='{\\\"to_agent\\\":\\\"search_agent\\\",\\\"reason\\\":\\\"Gather a concise, accurate explanation of the term \u201cagent trace,\u201d noting possible meanings across AI/agent systems and any distinction from related concepts.\\\"}')])\", \"ChatMessage(role=<MessageRole.TOOL: 'tool'>, additional_kwargs={'tool_call_id': 'call_uNNvo1VxA0Cja9WAGq3md5Nf'}, blocks=[TextBlock(block_type='text', text='Agent search_agent is now handling the request due to the following reason: Gather a concise, accurate explanation of the term \u201cagent trace,\u201d noting possible meanings across AI/agent systems and any distinction from related concepts..\\\\nPlease continue with the current request.')])\"], \"kwargs\": {\"tools\": [{\"type\": \"function\", \"function\": {\"name\": \"handoff\", \"description\": \"Useful for handing off to another agent.\\nIf you are currently not equipped to handle the user's request, or another agent is better suited to handle the request, please hand off to the appropriate agent.\\n\\nCurrently available agents:\\n{'writer_agent': 'Writes the final answer.'}\\n\", \"parameters\": {\"properties\": {\"to_agent\": {\"title\": \"To Agent\", \"type\": \"string\"}, \"reason\": {\"title\": \"Reason\", \"type\": \"string\"}}, \"required\": [\"to_agent\", \"reason\"], \"type\": \"object\", \"additionalProperties\": false}, \"strict\": false}}], \"tool_choice\": \"auto\", \"parallel_tool_calls\": true}}"
}
},
{
"key": "input.mime_type",
"value": {
"stringValue": "application/json"
}
},
{
"key": "llm.input_messages.0.message.role",
"value": {
"stringValue": "system"
}
},
{
"key": "llm.input_messages.0.message.content",
"value": {
"stringValue": "List key facts, then hand off to writer_agent."
}
},
{
"key": "llm.input_messages.1.message.role",
"value": {
"stringValue": "user"
}
},
{
"key": "llm.input_messages.1.message.content",
"value": {
"stringValue": "What is an agent trace?"
}
},
{
"key": "llm.input_messages.2.message.role",
"value": {
"stringValue": "assistant"
}
},
{
"key": "llm.input_messages.2.message.tool_calls.0.tool_call.id",
"value": {
"stringValue": "call_uNNvo1VxA0Cja9WAGq3md5Nf"
}
},
{
"key": "llm.input_messages.2.message.tool_calls.0.tool_call.function.name",
"value": {
"stringValue": "handoff"
}
},
{
"key": "llm.input_messages.2.message.tool_calls.0.tool_call.function.arguments",
"value": {
"stringValue": "{\"to_agent\":\"search_agent\",\"reason\":\"Gather a concise, accurate explanation of the term \u201cagent trace,\u201d noting possible meanings across AI/agent systems and any distinction from related concepts.\"}"
}
},
{
"key": "llm.input_messages.3.message.role",
"value": {
"stringValue": "tool"
}
},
{
"key": "llm.input_messages.3.message.content",
"value": {
"stringValue": "Agent search_agent is now handling the request due to the following reason: Gather a concise, accurate explanation of the term \u201cagent trace,\u201d noting possible meanings across AI/agent systems and any distinction from related concepts..\nPlease continue with the current request."
}
},
{
"key": "llm.input_messages.3.message.tool_call_id",
"value": {
"stringValue": "call_uNNvo1VxA0Cja9WAGq3md5Nf"
}
},
{
"key": "output.value",
"value": {
"stringValue": "assistant: None"
}
},
{
"key": "llm.token_count.prompt",
"value": {
"intValue": "233"
}
},
{
"key": "llm.token_count.prompt_details.cache_read",
"value": {
"intValue": "0"
}
},
{
"key": "llm.token_count.completion",
"value": {
"intValue": "248"
}
},
{
"key": "llm.token_count.completion_details.reasoning",
"value": {
"intValue": "117"
}
},
{
"key": "llm.token_count.total",
"value": {
"intValue": "481"
}
},
{
"key": "llm.output_messages.0.message.role",
"value": {
"stringValue": "assistant"
}
},
{
"key": "llm.output_messages.0.message.tool_calls.0.tool_call.id",
"value": {
"stringValue": "call_AiuL7gjOj6TBkbrw2xNb4Vpb"
}
},
{
"key": "llm.output_messages.0.message.tool_calls.0.tool_call.function.name",
"value": {
"stringValue": "handoff"
}
},
{
"key": "llm.output_messages.0.message.tool_calls.0.tool_call.function.arguments",
"value": {
"stringValue": "{\"to_agent\":\"writer_agent\",\"reason\":\"Key facts: \u201cagent trace\u201d is a context-dependent term, usually a chronological record of an AI agent\u2019s execution. It may capture events such as user input, model calls, tool/function calls, observations/results, state transitions, timing, and errors, often organized as spans for debugging, monitoring, or auditing. It is not necessarily the model\u2019s private chain-of-thought; traces typically expose operational events and selected inputs/outputs, subject to privacy/redaction. Give a concise definition and mention the term can vary by platform.\"}"
}
},
{
"key": "openinference.span.kind",
"value": {
"stringValue": "LLM"
}
}
],
"status": {
"code": 1
},
"flags": 256
},
{
"traceId": "b2a00495369de00b1b6befb7845030f2",
"spanId": "60063425126090a6",
"parentSpanId": "eb1a17544c97ab80",
"name": "OpenAILike.achat",
"kind": 1,
"startTimeUnixNano": "1791061373005911000",
"endTimeUnixNano": "1791061376588455000",
"attributes": [
{
"key": "llm.model_name",
"value": {
"stringValue": "openai/gpt-6-luna"
}
},
{
"key": "llm.invocation_parameters",
"value": {
"stringValue": "{\"context_window\":3900,\"num_output\":-1,\"is_chat_model\":true,\"is_function_calling_model\":true,\"model_name\":\"openai/gpt-6-luna\"}"
}
},
{
"key": "llm.provider",
"value": {
"stringValue": "openai"
}
},
{
"key": "llm.system",
"value": {
"stringValue": "openai"
}
},
{
"key": "llm.tools.0.tool.json_schema",
"value": {
"stringValue": "{\"type\": \"function\", \"function\": {\"name\": \"handoff\", \"description\": \"Useful for handing off to another agent.\\nIf you are currently not equipped to handle the user's request, or another agent is better suited to handle the request, please hand off to the appropriate agent.\\n\\nCurrently available agents:\\n{'writer_agent': 'Writes the final answer.'}\\n\", \"parameters\": {\"properties\": {\"to_agent\": {\"title\": \"To Agent\", \"type\": \"string\"}, \"reason\": {\"title\": \"Reason\", \"type\": \"string\"}}, \"required\": [\"to_agent\", \"reason\"], \"type\": \"object\", \"additionalProperties\": false}, \"strict\": false}}"
}
},
{
"key": "input.value",
"value": {
"stringValue": "{\"messages\": [\"ChatMessage(role=<MessageRole.SYSTEM: 'system'>, additional_kwargs={}, blocks=[TextBlock(block_type='text', text='List key facts, then hand off to writer_agent.')])\", \"ChatMessage(role=<MessageRole.USER: 'user'>, additional_kwargs={}, blocks=[TextBlock(block_type='text', text='What is an agent trace?')])\", \"ChatMessage(role=<MessageRole.ASSISTANT: 'assistant'>, additional_kwargs={'tool_calls': [ChatCompletionMessageFunctionToolCall(id='call_uNNvo1VxA0Cja9WAGq3md5Nf', function=Function(arguments='{\\\"to_agent\\\":\\\"search_agent\\\",\\\"reason\\\":\\\"Gather a concise, accurate explanation of the term \u201cagent trace,\u201d noting possible meanings across AI/agent systems and any distinction from related concepts.\\\"}', name='handoff'), type='function', index=0)]}, blocks=[ToolCallBlock(block_type='tool_call', tool_call_id='call_uNNvo1VxA0Cja9WAGq3md5Nf', tool_name='handoff', tool_kwargs='{\\\"to_agent\\\":\\\"search_agent\\\",\\\"reason\\\":\\\"Gather a concise, accurate explanation of the term \u201cagent trace,\u201d noting possible meanings across AI/agent systems and any distinction from related concepts.\\\"}')])\", \"ChatMessage(role=<MessageRole.TOOL: 'tool'>, additional_kwargs={'tool_call_id': 'call_uNNvo1VxA0Cja9WAGq3md5Nf'}, blocks=[TextBlock(block_type='text', text='Agent search_agent is now handling the request due to the following reason: Gather a concise, accurate explanation of the term \u201cagent trace,\u201d noting possible meanings across AI/agent systems and any distinction from related concepts..\\\\nPlease continue with the current request.')])\"], \"kwargs\": {\"tools\": [{\"type\": \"function\", \"function\": {\"name\": \"handoff\", \"description\": \"Useful for handing off to another agent.\\nIf you are currently not equipped to handle the user's request, or another agent is better suited to handle the request, please hand off to the appropriate agent.\\n\\nCurrently available agents:\\n{'writer_agent': 'Writes the final answer.'}\\n\", \"parameters\": {\"properties\": {\"to_agent\": {\"title\": \"To Agent\", \"type\": \"string\"}, \"reason\": {\"title\": \"Reason\", \"type\": \"string\"}}, \"required\": [\"to_agent\", \"reason\"], \"type\": \"object\", \"additionalProperties\": false}, \"strict\": false}}], \"tool_choice\": \"auto\", \"parallel_tool_calls\": true}}"
}
},
{
"key": "input.mime_type",
"value": {
"stringValue": "application/json"
}
},
{
"key": "output.value",
"value": {
"stringValue": "{\"message\":{\"role\":\"assistant\",\"additional_kwargs\":{\"tool_calls\":[{\"id\":\"call_AiuL7gjOj6TBkbrw2xNb4Vpb\",\"function\":{\"arguments\":\"{\\\"to_agent\\\":\\\"writer_agent\\\",\\\"reason\\\":\\\"Key facts: \u201cagent trace\u201d is a context-dependent term, usually a chronological record of an AI agent\u2019s execution. It may capture events such as user input, model calls, tool/function calls, observations/results, state transitions, timing, and errors, often organized as spans for debugging, monitoring, or auditing. It is not necessarily the model\u2019s private chain-of-thought; traces typically expose operational events and selected inputs/outputs, subject to privacy/redaction. Give a concise definition and mention the term can vary by platform.\\\"}\",\"name\":\"handoff\"},\"type\":\"function\",\"index\":0}]},\"blocks\":[{\"tool_call_id\":\"call_AiuL7gjOj6TBkbrw2xNb4Vpb\",\"tool_name\":\"handoff\",\"tool_kwargs\":\"{\\\"to_agent\\\":\\\"writer_agent\\\",\\\"reason\\\":\\\"Key facts: \u201cagent trace\u201d is a context-dependent term, usually a chronological record of an AI agent\u2019s execution. It may capture events such as user input, model calls, tool/function calls, observations/results, state transitions, timing, and errors, often organized as spans for debugging, monitoring, or auditing. It is not necessarily the model\u2019s private chain-of-thought; traces typically expose operational events and selected inputs/outputs, subject to privacy/redaction. Give a concise definition and mention the term can vary by platform.\\\"}\"}]},\"raw\":{\"id\":\"resp_010ef730cc2991e5006ac16d7d272487d0a9a3d9bf828f3360\",\"choices\":[{\"finish_reason\":\"tool_calls\",\"index\":0,\"message\":{\"content\":null,\"role\":\"assistant\",\"tool_calls\":[{\"id\":\"call_AiuL7gjOj6TBkbrw2xNb4Vpb\",\"function\":{\"arguments\":\"{\\\"to_agent\\\":\\\"writer_agent\\\",\\\"reason\\\":\\\"Key facts: \u201cagent trace\u201d is a context-dependent term, usually a chronological record of an AI agent\u2019s execution. It may capture events such as user input, model calls, tool/function calls, observations/results, state transitions, timing, and errors, often organized as spans for debugging, monitoring, or auditing. It is not necessarily the model\u2019s private chain-of-thought; traces typically expose operational events and selected inputs/outputs, subject to privacy/redaction. Give a concise definition and mention the term can vary by platform.\\\"}\",\"name\":\"handoff\"},\"type\":\"function\",\"index\":0}],\"reasoning_content\":\"\",\"reasoning_items\":[{\"type\":\"reasoning\",\"id\":\"rs_010ef730cc2991e5006ac16d7dbbd087d08e0c067500c341f3\",\"encrypted_content\":\"gAAAAABqwW2AHPai_ZycYxFvSI44ckjP9rwJrEZB6tyxLF1GSFMvYXkadfRSi4oZ1jXY4DhSl-G5sLL2Zv9JiQiFZPoWWAltWbNMHwqWDCRGOJkUfrSxNh60Df3F2d9ok8EHb7n9BasxqwP57VKXss-gpAaRK5ubFf8T8LWy_TxvxbIZEaq43s1KYVUsQeAXd6C0LS1HEbjPd50EKzThrtyoqvImWyZN8ENGknYszBNzMXdmBqufIPZ7dTCglecC-T75oktASC11iG_zxS7w2SkhrPjP292z0PzITZp25wVGMVZVh3hSSkZQE5OWvLetenRd7UNNQ-nbSbltUWB_Gns2asbz0yxVtU4v4gm2yqU6yPq-aqpDmwmWbLjFV894aIg3aRALsMYC63Mwg5xhn_qcDCG7PmvHaKfo-AOCfuw5fok16bCgkjPrX-V4gUgesniyOYbnr8IrfQPbpr-oTNpHCKZlQR79qDWblE6fO27uYOUcTdtSBJUjHfREcs4-5CQaIUeYsFYpTbVH89Ztywlf097AWJiZEH2sPYf8Gerg9ljyFztj1CnwlPAWV0a6lpNvGrvEfswB2agImWe3qW2eoSsFkHRvaSi41bKV5aaGv_Kot48nupMpmVRDeVyp9MsePy7h888-JJAfeAxKG441GGee4ef0mT3EpCub6YbzHibtB6-it1vo0o1MXD-dIPvZ4qGc06Loawzrp3pL21NCGUvKUVdgsdMWfXss6zfqRUqWxuIzwOonz9pMPTY9rObBB-OyRvX2jluZP5ZhZLO2k50QxEeCymc0WBx2dI2PP_8T633qacOzVK2tMIxKXT5C-s2LkNmYTKI0EZarVmtkq39KGL8iN9mt-yxsH5IZmn1yg3TZs1Z8A7Cd3NYGK-WSK2TbWsixJvqowMGxv29jwXNDicB-dAnj4lcMPbiFePnaRUIXCGtTr_maU0ISqYo2gs28BL6MELnDpuq-gtRokCOgyNnKY4C69AEJSywar8jE3JeNNS5wFfgPbGEKKgDiMafjQ6l29G-YKUHsXCH3LFNVyqiTl1lbquPnJ8ZrOhNeK_98Q50P5NCh9NAd3OJ86aLb8VflMNwgzf-UanxVeSmpG-M3IOE70KaVvf63GMlZ_-qgCM_fdjZihucI-dF6eUTPaEA4Sloh5ppavbCNETsTok_zMfSMen65ziJ5ygwCqIqXdhm3ByLa2FjVhZiqwYzTNJ_cgGNl2gO0QC89Y4lKecd_ugDQImRLq7uBvZ7Ju1kUueyLOiEt9wc6anzoN3p_zwNwj5sGolrGRYr9GWmv4UwPQ2kooRMHGkxPpP8cQpBHANJ96etdAY8JA6am-ALv5gV14nsdEmkmNzN9tfTfKEDfcu2U5XR9ADkU8k4gdzCxZtAlPyQUXorDGT7P_zZbEu9vWmmUK08ziiFqM9V08Tji-5pQM_UqMUYmgx2PaBfp5FKZkZt8Q38ObSlOIP3e2lDg81jHDOdMfXANUOxtdNCEWA7xSdqARHbmTOCI5w_hMNWom_zHuAXpgvHB-4Ry5a-dIy1zM-RB4xQ5pjAQH2uMXTcUXZE4ZRP5pUMSNJEZSzk4ETgIjH2mvGxiefAy7QxdOGuvZy1dDVdVLYBqMfu_ZXt00_rUzV2-Z9NjUFb9kfXhiO1XucNF2neM5v4c1MwYf6-YxCFVQY6O3_6dSAnicI7ZlpFfgwIRGZy49t5ZxsA-ALVZclOTpPkP_tsO0tuu8WgGEDk0Ew-7chZOiPK72CWtK-xPTZqJRk-5D_O2c1eLHVVFWGZzgPM6pfN1JXdAnKIi-q9jseF28CDhJYapfts6u-VzO1hUDba0wzkTT4OjCCLoGDohtIqmUFFOf3PEn37FizeEilgvbKVtl1lJybf0x-bF8m2m4AO_O7eoeZ64Ng02Tsbr2_IjxD834osvkX16_gM8ji4YG3jj71bscPN7-uuIlg-tYbZHDsRQvB4=\",\"summary\":[]}]}}],\"created\":1791061373,\"model\":\"openai/gpt-6-luna\",\"object\":\"chat.completion\",\"service_tier\":\"default\",\"usage\":{\"completion_tokens\":248,\"prompt_tokens\":233,\"total_tokens\":481,\"completion_tokens_details\":{\"reasoning_tokens\":117},\"prompt_tokens_details\":{\"cache_write_tokens\":0,\"cached_tokens\":0,\"cache_creation_tokens\":0}},\"access_programs\":{\"cyber\":\"daybreak_blue\"},\"billing\":{\"payer\":\"developer\"},\"frequency_penalty\":0.0,\"presence_penalty\":0.0,\"tool_usage\":{\"image_gen\":{\"input_tokens\":0,\"input_tokens_details\":{\"image_tokens\":0,\"text_tokens\":0},\"output_tokens\":0,\"output_tokens_details\":{\"image_tokens\":0,\"text_tokens\":0},\"total_tokens\":0},\"web_search\":{\"num_requests\":0}}},\"logprobs\":null,\"additional_kwargs\":{\"prompt_tokens\":233,\"completion_tokens\":248,\"total_tokens\":481}}"
}
},
{
"key": "output.mime_type",
"value": {
"stringValue": "application/json"
}
},
{
"key": "openinference.span.kind",
"value": {
"stringValue": "LLM"
}
}
],
"status": {
"code": 1
},
"flags": 256
},
{
"traceId": "b2a00495369de00b1b6befb7845030f2",
"spanId": "eb1a17544c97ab80",
"parentSpanId": "c2f4febbff5e0910",
"name": "AgentWorkflow.run_agent_step",
"kind": 1,
"startTimeUnixNano": "1791061373005185000",
"endTimeUnixNano": "1791061376588666000",
"attributes": [
{
"key": "input.value",
"value": {
"stringValue": "{\"ctx\": \"<workflows.context.context.Context object at 0x10f431b50>\", \"ev\": \"AgentSetup(input=[ChatMessage(role=<MessageRole.SYSTEM: 'system'>, additional_kwargs={}, blocks=[TextBlock(block_type='text', text='List key facts, then hand off to writer_agent.')]), ChatMessage(role=<MessageRole.USER: 'user'>, additional_kwargs={}, blocks=[TextBlock(block_type='text', text='What is an agent trace?')]), ChatMessage(role=<MessageRole.ASSISTANT: 'assistant'>, additional_kwargs={'tool_calls': [ChatCompletionMessageFunctionToolCall(id='call_uNNvo1VxA0Cja9WAGq3md5Nf', function=Function(arguments='{\\\"to_agent\\\":\\\"search_agent\\\",\\\"reason\\\":\\\"Gather a concise, accurate explanation of the term \u201cagent trace,\u201d noting possible meanings across AI/agent systems and any distinction from related concepts.\\\"}', name='handoff'), type='function', index=0)]}, blocks=[ToolCallBlock(block_type='tool_call', tool_call_id='call_uNNvo1VxA0Cja9WAGq3md5Nf', tool_name='handoff', tool_kwargs='{\\\"to_agent\\\":\\\"search_agent\\\",\\\"reason\\\":\\\"Gather a concise, accurate explanation of the term \u201cagent trace,\u201d noting possible meanings across AI/agent systems and any distinction from related concepts.\\\"}')]), ChatMessage(role=<MessageRole.TOOL: 'tool'>, additional_kwargs={'tool_call_id': 'call_uNNvo1VxA0Cja9WAGq3md5Nf'}, blocks=[TextBlock(block_type='text', text='Agent search_agent is now handling the request due to the following reason: Gather a concise, accurate explanation of the term \u201cagent trace,\u201d noting possible meanings across AI/agent systems and any distinction from related concepts..\\\\nPlease continue with the current request.')])], current_agent_name='search_agent')\"}"
}
},
{
"key": "input.mime_type",
"value": {
"stringValue": "application/json"
}
},
{
"key": "output.value",
"value": {
"stringValue": "AgentOutput(response=ChatMessage(role=<MessageRole.ASSISTANT: 'assistant'>, additional_kwargs={'tool_calls': [ChatCompletionMessageFunctionToolCall(id='call_AiuL7gjOj6TBkbrw2xNb4Vpb', function=Func..."
}
},
{
"key": "output.mime_type",
"value": {
"stringValue": "text/plain"
}
},
{
"key": "openinference.span.kind",
"value": {
"stringValue": "CHAIN"
}
}
],
"status": {
"code": 1
},
"flags": 256
},
{
"traceId": "b2a00495369de00b1b6befb7845030f2",
"spanId": "26b30e6ec3cbaf4e",
"parentSpanId": "c2f4febbff5e0910",
"name": "AgentWorkflow.parse_agent_output",
"kind": 1,
"startTimeUnixNano": "1791061376589487000",
"endTimeUnixNano": "1791061376589763000",
"attributes": [
{
"key": "input.value",
"value": {
"stringValue": "{\"ctx\": \"<workflows.context.context.Context object at 0x10da1e8a0>\", \"ev\": \"AgentOutput(response=ChatMessage(role=<MessageRole.ASSISTANT: 'assistant'>, additional_kwargs={'tool_calls': [ChatCompletionMessageFunctionToolCall(id='call_AiuL7gjOj6TBkbrw2xNb4Vpb', function=Function(arguments='{\\\"to_agent\\\":\\\"writer_agent\\\",\\\"reason\\\":\\\"Key facts: \u201cagent trace\u201d is a context-dependent term, usually a chronological record of an AI agent\u2019s execution. It may capture events such as user input, model calls, tool/function calls, observations/results, state transitions, timing, and errors, often organized as spans for debugging, monitoring, or auditing. It is not necessarily the model\u2019s private chain-of-thought; traces typically expose operational events and selected inputs/outputs, subject to privacy/redaction. Give a concise definition and mention the term can vary by platform.\\\"}', name='handoff'), type='function', index=0)]}, blocks=[ToolCallBlock(block_type='tool_call', tool_call_id='call_AiuL7gjOj6TBkbrw2xNb4Vpb', tool_name='handoff', tool_kwargs='{\\\"to_agent\\\":\\\"writer_agent\\\",\\\"reason\\\":\\\"Key facts: \u201cagent trace\u201d is a context-dependent term, usually a chronological record of an AI agent\u2019s execution. It may capture events such as user input, model calls, tool/function calls, observations/results, state transitions, timing, and errors, often organized as spans for debugging, monitoring, or auditing. It is not necessarily the model\u2019s private chain-of-thought; traces typically expose operational events and selected inputs/outputs, subject to privacy/redaction. Give a concise definition and mention the term can vary by platform.\\\"}')]), structured_response=None, current_agent_name='search_agent', raw={'id': 'resp_010ef730cc2991e5006ac16d7d272487d0a9a3d9bf828f3360', 'choices': [{'finish_reason': 'tool_calls', 'index': 0, 'logprobs': None, 'message': {'content': None, 'refusal': None, 'role': 'assistant', 'annotations': None, 'audio': None, 'function_call': None, 'tool_calls': [{'id': 'call_AiuL7gjOj6TBkbrw2xNb4Vpb', 'function': {'arguments': '{\\\"to_agent\\\":\\\"writer_agent\\\",\\\"reason\\\":\\\"Key facts: \u201cagent trace\u201d is a context-dependent term, usually a chronological record of an AI agent\u2019s execution. It may capture events such as user input, model calls, tool/function calls, observations/results, state transitions, timing, and errors, often organized as spans for debugging, monitoring, or auditing. It is not necessarily the model\u2019s private chain-of-thought; traces typically expose operational events and selected inputs/outputs, subject to privacy/redaction. Give a concise definition and mention the term can vary by platform.\\\"}', 'name': 'handoff'}, 'type': 'function', 'index': 0}], 'reasoning_content': '', 'reasoning_items': [{'type': 'reasoning', 'id': 'rs_010ef730cc2991e5006ac16d7dbbd087d08e0c067500c341f3', 'encrypted_content': 'gAAAAABqwW2AHPai_ZycYxFvSI44ckjP9rwJrEZB6tyxLF1GSFMvYXkadfRSi4oZ1jXY4DhSl-G5sLL2Zv9JiQiFZPoWWAltWbNMHwqWDCRGOJkUfrSxNh60Df3F2d9ok8EHb7n9BasxqwP57VKXss-gpAaRK5ubFf8T8LWy_TxvxbIZEaq43s1KYVUsQeAXd6C0LS1HEbjPd50EKzThrtyoqvImWyZN8ENGknYszBNzMXdmBqufIPZ7dTCglecC-T75oktASC11iG_zxS7w2SkhrPjP292z0PzITZp25wVGMVZVh3hSSkZQE5OWvLetenRd7UNNQ-nbSbltUWB_Gns2asbz0yxVtU4v4gm2yqU6yPq-aqpDmwmWbLjFV894aIg3aRALsMYC63Mwg5xhn_qcDCG7PmvHaKfo-AOCfuw5fok16bCgkjPrX-V4gUgesniyOYbnr8IrfQPbpr-oTNpHCKZlQR79qDWblE6fO27uYOUcTdtSBJUjHfREcs4-5CQaIUeYsFYpTbVH89Ztywlf097AWJiZEH2sPYf8Gerg9ljyFztj1CnwlPAWV0a6lpNvGrvEfswB2agImWe3qW2eoSsFkHRvaSi41bKV5aaGv_Kot48nupMpmVRDeVyp9MsePy7h888-JJAfeAxKG441GGee4ef0mT3EpCub6YbzHibtB6-it1vo0o1MXD-dIPvZ4qGc06Loawzrp3pL21NCGUvKUVdgsdMWfXss6zfqRUqWxuIzwOonz9pMPTY9rObBB-OyRvX2jluZP5ZhZLO2k50QxEeCymc0WBx2dI2PP_8T633qacOzVK2tMIxKXT5C-s2LkNmYTKI0EZarVmtkq39KGL8iN9mt-yxsH5IZmn1yg3TZs1Z8A7Cd3NYGK-WSK2TbWsixJvqowMGxv29jwXNDicB-dAnj4lcMPbiFePnaRUIXCGtTr_maU0ISqYo2gs28BL6MELnDpuq-gtRokCOgyNnKY4C69AEJSywar8jE3JeNNS5wFfgPbGEKKgDiMafjQ6l29G-YKUHsXCH3LFNVyqiTl1lbquPnJ8ZrOhNeK_98Q50P5NCh9NAd3OJ86aLb8VflMNwgzf-UanxVeSmpG-M3IOE70KaVvf63GMlZ_-qgCM_fdjZihucI-dF6eUTPaEA4Sloh5ppavbCNETsTok_zMfSMen65ziJ5ygwCqIqXdhm3ByLa2FjVhZiqwYzTNJ_cgGNl2gO0QC89Y4lKecd_ugDQImRLq7uBvZ7Ju1kUueyLOiEt9wc6anzoN3p_zwNwj5sGolrGRYr9GWmv4UwPQ2kooRMHGkxPpP8cQpBHANJ96etdAY8JA6am-ALv5gV14nsdEmkmNzN9tfTfKEDfcu2U5XR9ADkU8k4gdzCxZtAlPyQUXorDGT7P_zZbEu9vWmmUK08ziiFqM9V08Tji-5pQM_UqMUYmgx2PaBfp5FKZkZt8Q38ObSlOIP3e2lDg81jHDOdMfXANUOxtdNCEWA7xSdqARHbmTOCI5w_hMNWom_zHuAXpgvHB-4Ry5a-dIy1zM-RB4xQ5pjAQH2uMXTcUXZE4ZRP5pUMSNJEZSzk4ETgIjH2mvGxiefAy7QxdOGuvZy1dDVdVLYBqMfu_ZXt00_rUzV2-Z9NjUFb9kfXhiO1XucNF2neM5v4c1MwYf6-YxCFVQY6O3_6dSAnicI7ZlpFfgwIRGZy49t5ZxsA-ALVZclOTpPkP_tsO0tuu8WgGEDk0Ew-7chZOiPK72CWtK-xPTZqJRk-5D_O2c1eLHVVFWGZzgPM6pfN1JXdAnKIi-q9jseF28CDhJYapfts6u-VzO1hUDba0wzkTT4OjCCLoGDohtIqmUFFOf3PEn37FizeEilgvbKVtl1lJybf0x-bF8m2m4AO_O7eoeZ64Ng02Tsbr2_IjxD834osvkX16_gM8ji4YG3jj71bscPN7-uuIlg-tYbZHDsRQvB4=', 'summary': []}]}}], 'created': 1791061373, 'model': 'openai/gpt-6-luna', 'object': 'chat.completion', 'moderation': None, 'service_tier': 'default', 'system_fingerprint': None, 'usage': {'completion_tokens': 248, 'prompt_tokens': 233, 'total_tokens': 481, 'completion_tokens_details': {'accepted_prediction_tokens': None, 'audio_tokens': None, 'reasoning_tokens': 117, 'rejected_prediction_tokens': None}, 'prompt_tokens_details': {'audio_tokens': None, 'cache_write_tokens': 0, 'cached_tokens': 0, 'cache_creation_tokens': 0}}, 'access_programs': {'cyber': 'daybreak_blue'}, 'billing': {'payer': 'developer'}, 'frequency_penalty': 0.0, 'presence_penalty': 0.0, 'tool_usage': {'image_gen': {'input_tokens': 0, 'input_tokens_details': {'image_tokens': 0, 'text_tokens': 0}, 'output_tokens': 0, 'output_tokens_details': {'image_tokens': 0, 'text_tokens': 0}, 'total_tokens': 0}, 'web_search': {'num_requests': 0}}}, tool_calls=[ToolSelection(tool_id='call_AiuL7gjOj6TBkbrw2xNb4Vpb', tool_name='handoff', tool_kwargs={'to_agent': 'writer_agent', 'reason': 'Key facts: \u201cagent trace\u201d is a context-dependent term, usually a chronological record of an AI agent\u2019s execution. It may capture events such as user input, model calls, tool/function calls, observations/results, state transitions, timing, and errors, often organized as spans for debugging, monitoring, or auditing. It is not necessarily the model\u2019s private chain-of-thought; traces typically expose operational events and selected inputs/outputs, subject to privacy/redaction. Give a concise definition and mention the term can vary by platform.'})], retry_messages=[])\"}"
}
},
{
"key": "input.mime_type",
"value": {
"stringValue": "application/json"
}
},
{
"key": "openinference.span.kind",
"value": {
"stringValue": "CHAIN"
}
}
],
"status": {
"code": 1
},
"flags": 256
},
{
"traceId": "b2a00495369de00b1b6befb7845030f2",
"spanId": "a54416bcc050346c",
"parentSpanId": "b9507a93c3029650",
"name": "FunctionTool.acall",
"kind": 1,
"startTimeUnixNano": "1791061376590654000",
"endTimeUnixNano": "1791061376590963000",
"attributes": [
{
"key": "tool.description",
"value": {
"stringValue": "Useful for handing off to another agent.\nIf you are currently not equipped to handle the user's request, or another agent is better suited to handle the request, please hand off to the appropriate agent.\n\nCurrently available agents:\n{'writer_agent': 'Writes the final answer.'}\n"
}
},
{
"key": "tool.name",
"value": {
"stringValue": "handoff"
}
},
{
"key": "tool.parameters",
"value": {
"stringValue": "{\"properties\": {\"to_agent\": {\"title\": \"To Agent\", \"type\": \"string\"}, \"reason\": {\"title\": \"Reason\", \"type\": \"string\"}}, \"required\": [\"to_agent\", \"reason\"], \"type\": \"object\"}"
}
},
{
"key": "input.value",
"value": {
"stringValue": "{\"kwargs\": {\"to_agent\": \"writer_agent\", \"reason\": \"Key facts: \u201cagent trace\u201d is a context-dependent term, usually a chronological record of an AI agent\u2019s execution. It may capture events such as user input, model calls, tool/function calls, observations/results, state transitions, timing, and errors, often organized as spans for debugging, monitoring, or auditing. It is not necessarily the model\u2019s private chain-of-thought; traces typically expose operational events and selected inputs/outputs, subject to privacy/redaction. Give a concise definition and mention the term can vary by platform.\", \"ctx\": \"<workflows.context.context.Context object at 0x10da1f980>\"}}"
}
},
{
"key": "input.mime_type",
"value": {
"stringValue": "application/json"
}
},
{
"key": "output.value",
"value": {
"stringValue": "{\"blocks\":[{\"text\":\"Agent writer_agent is now handling the request due to the following reason: Key facts: \u201cagent trace\u201d is a context-dependent term, usually a chronological record of an AI agent\u2019s execution. It may capture events such as user input, model calls, tool/function calls, observations/results, state transitions, timing, and errors, often organized as spans for debugging, monitoring, or auditing. It is not necessarily the model\u2019s private chain-of-thought; traces typically expose operational events and selected inputs/outputs, subject to privacy/redaction. Give a concise definition and mention the term can vary by platform..\\nPlease continue with the current request.\"}],\"tool_name\":\"handoff\",\"raw_input\":{\"args\":[],\"kwargs\":{\"to_agent\":\"writer_agent\",\"reason\":\"Key facts: \u201cagent trace\u201d is a context-dependent term, usually a chronological record of an AI agent\u2019s execution. It may capture events such as user input, model calls, tool/function calls, observations/results, state transitions, timing, and errors, often organized as spans for debugging, monitoring, or auditing. It is not necessarily the model\u2019s private chain-of-thought; traces typically expose operational events and selected inputs/outputs, subject to privacy/redaction. Give a concise definition and mention the term can vary by platform.\"}},\"raw_output\":\"Agent writer_agent is now handling the request due to the following reason: Key facts: \u201cagent trace\u201d is a context-dependent term, usually a chronological record of an AI agent\u2019s execution. It may capture events such as user input, model calls, tool/function calls, observations/results, state transitions, timing, and errors, often organized as spans for debugging, monitoring, or auditing. It is not necessarily the model\u2019s private chain-of-thought; traces typically expose operational events and selected inputs/outputs, subject to privacy/redaction. Give a concise definition and mention the term can vary by platform..\\nPlease continue with the current request.\",\"is_error\":false}"
}
},
{
"key": "output.mime_type",
"value": {
"stringValue": "application/json"
}
},
{
"key": "openinference.span.kind",
"value": {
"stringValue": "TOOL"
}
}
],
"status": {
"code": 1
},
"flags": 256
},
{
"traceId": "b2a00495369de00b1b6befb7845030f2",
"spanId": "b9507a93c3029650",
"parentSpanId": "c2f4febbff5e0910",
"name": "AgentWorkflow.call_tool",
"kind": 1,
"startTimeUnixNano": "1791061376590160000",
"endTimeUnixNano": "1791061376591082000",
"attributes": [
{
"key": "input.value",
"value": {
"stringValue": "{\"ctx\": \"<workflows.context.context.Context object at 0x10da1f980>\", \"ev\": \"ToolCall(tool_name='handoff', tool_kwargs={'to_agent': 'writer_agent', 'reason': 'Key facts: \u201cagent trace\u201d is a context-dependent term, usually a chronological record of an AI agent\u2019s execution. It may capture events such as user input, model calls, tool/function calls, observations/results, state transitions, timing, and errors, often organized as spans for debugging, monitoring, or auditing. It is not necessarily the model\u2019s private chain-of-thought; traces typically expose operational events and selected inputs/outputs, subject to privacy/redaction. Give a concise definition and mention the term can vary by platform.'}, tool_id='call_AiuL7gjOj6TBkbrw2xNb4Vpb')\"}"
}
},
{
"key": "input.mime_type",
"value": {
"stringValue": "application/json"
}
},
{
"key": "output.value",
"value": {
"stringValue": "ToolCallResult(tool_name='handoff', tool_kwargs={'to_agent': 'writer_agent', 'reason': 'Key facts: \u201cagent trace\u201d is a context-dependent term, usually a chronological record of an AI agent\u2019s executi..."
}
},
{
"key": "output.mime_type",
"value": {
"stringValue": "text/plain"
}
},
{
"key": "openinference.span.kind",
"value": {
"stringValue": "CHAIN"
}
}
],
"status": {
"code": 1
},
"flags": 256
},
{
"traceId": "b2a00495369de00b1b6befb7845030f2",
"spanId": "cd5559c8139c8455",
"parentSpanId": "c2f4febbff5e0910",
"name": "AgentWorkflow.aggregate_tool_results",
"kind": 1,
"startTimeUnixNano": "1791061376591599000",
"endTimeUnixNano": "1791061376592240000",
"attributes": [
{
"key": "input.value",
"value": {
"stringValue": "{\"ctx\": \"<workflows.context.context.Context object at 0x10f4e7230>\", \"ev\": \"ToolCallResult(tool_name='handoff', tool_kwargs={'to_agent': 'writer_agent', 'reason': 'Key facts: \u201cagent trace\u201d is a context-dependent term, usually a chronological record of an AI agent\u2019s execution. It may capture events such as user input, model calls, tool/function calls, observations/results, state transitions, timing, and errors, often organized as spans for debugging, monitoring, or auditing. It is not necessarily the model\u2019s private chain-of-thought; traces typically expose operational events and selected inputs/outputs, subject to privacy/redaction. Give a concise definition and mention the term can vary by platform.'}, tool_id='call_AiuL7gjOj6TBkbrw2xNb4Vpb', tool_output=ToolOutput(blocks=[TextBlock(block_type='text', text='Agent writer_agent is now handling the request due to the following reason: Key facts: \u201cagent trace\u201d is a context-dependent term, usually a chronological record of an AI agent\u2019s execution. It may capture events such as user input, model calls, tool/function calls, observations/results, state transitions, timing, and errors, often organized as spans for debugging, monitoring, or auditing. It is not necessarily the model\u2019s private chain-of-thought; traces typically expose operational events and selected inputs/outputs, subject to privacy/redaction. Give a concise definition and mention the term can vary by platform..\\\\nPlease continue with the current request.')], tool_name='handoff', raw_input={'args': (), 'kwargs': {'to_agent': 'writer_agent', 'reason': 'Key facts: \u201cagent trace\u201d is a context-dependent term, usually a chronological record of an AI agent\u2019s execution. It may capture events such as user input, model calls, tool/function calls, observations/results, state transitions, timing, and errors, often organized as spans for debugging, monitoring, or auditing. It is not necessarily the model\u2019s private chain-of-thought; traces typically expose operational events and selected inputs/outputs, subject to privacy/redaction. Give a concise definition and mention the term can vary by platform.'}}, raw_output='Agent writer_agent is now handling the request due to the following reason: Key facts: \u201cagent trace\u201d is a context-dependent term, usually a chronological record of an AI agent\u2019s execution. It may capture events such as user input, model calls, tool/function calls, observations/results, state transitions, timing, and errors, often organized as spans for debugging, monitoring, or auditing. It is not necessarily the model\u2019s private chain-of-thought; traces typically expose operational events and selected inputs/outputs, subject to privacy/redaction. Give a concise definition and mention the term can vary by platform..\\\\nPlease continue with the current request.', is_error=False), return_direct=True)\"}"
}
},
{
"key": "input.mime_type",
"value": {
"stringValue": "application/json"
}
},
{
"key": "output.value",
"value": {
"stringValue": "AgentInput(input=[5 items], current_agent_name='writer_agent')"
}
},
{
"key": "output.mime_type",
"value": {
"stringValue": "text/plain"
}
},
{
"key": "openinference.span.kind",
"value": {
"stringValue": "CHAIN"
}
}
],
"status": {
"code": 1
},
"flags": 256
},
{
"traceId": "b2a00495369de00b1b6befb7845030f2",
"spanId": "3e946f4b18c05806",
"parentSpanId": "c2f4febbff5e0910",
"name": "AgentWorkflow.setup_agent",
"kind": 1,
"startTimeUnixNano": "1791061376592616000",
"endTimeUnixNano": "1791061376592844000",
"attributes": [
{
"key": "input.value",
"value": {
"stringValue": "{\"ctx\": \"<workflows.context.context.Context object at 0x10f4e7690>\", \"ev\": \"AgentInput(input=[ChatMessage(role=<MessageRole.USER: 'user'>, additional_kwargs={}, blocks=[TextBlock(block_type='text', text='What is an agent trace?')]), ChatMessage(role=<MessageRole.ASSISTANT: 'assistant'>, additional_kwargs={'tool_calls': [ChatCompletionMessageFunctionToolCall(id='call_uNNvo1VxA0Cja9WAGq3md5Nf', function=Function(arguments='{\\\"to_agent\\\":\\\"search_agent\\\",\\\"reason\\\":\\\"Gather a concise, accurate explanation of the term \u201cagent trace,\u201d noting possible meanings across AI/agent systems and any distinction from related concepts.\\\"}', name='handoff'), type='function', index=0)]}, blocks=[ToolCallBlock(block_type='tool_call', tool_call_id='call_uNNvo1VxA0Cja9WAGq3md5Nf', tool_name='handoff', tool_kwargs='{\\\"to_agent\\\":\\\"search_agent\\\",\\\"reason\\\":\\\"Gather a concise, accurate explanation of the term \u201cagent trace,\u201d noting possible meanings across AI/agent systems and any distinction from related concepts.\\\"}')]), ChatMessage(role=<MessageRole.TOOL: 'tool'>, additional_kwargs={'tool_call_id': 'call_uNNvo1VxA0Cja9WAGq3md5Nf'}, blocks=[TextBlock(block_type='text', text='Agent search_agent is now handling the request due to the following reason: Gather a concise, accurate explanation of the term \u201cagent trace,\u201d noting possible meanings across AI/agent systems and any distinction from related concepts..\\\\nPlease continue with the current request.')]), ChatMessage(role=<MessageRole.ASSISTANT: 'assistant'>, additional_kwargs={'tool_calls': [ChatCompletionMessageFunctionToolCall(id='call_AiuL7gjOj6TBkbrw2xNb4Vpb', function=Function(arguments='{\\\"to_agent\\\":\\\"writer_agent\\\",\\\"reason\\\":\\\"Key facts: \u201cagent trace\u201d is a context-dependent term, usually a chronological record of an AI agent\u2019s execution. It may capture events such as user input, model calls, tool/function calls, observations/results, state transitions, timing, and errors, often organized as spans for debugging, monitoring, or auditing. It is not necessarily the model\u2019s private chain-of-thought; traces typically expose operational events and selected inputs/outputs, subject to privacy/redaction. Give a concise definition and mention the term can vary by platform.\\\"}', name='handoff'), type='function', index=0)]}, blocks=[ToolCallBlock(block_type='tool_call', tool_call_id='call_AiuL7gjOj6TBkbrw2xNb4Vpb', tool_name='handoff', tool_kwargs='{\\\"to_agent\\\":\\\"writer_agent\\\",\\\"reason\\\":\\\"Key facts: \u201cagent trace\u201d is a context-dependent term, usually a chronological record of an AI agent\u2019s execution. It may capture events such as user input, model calls, tool/function calls, observations/results, state transitions, timing, and errors, often organized as spans for debugging, monitoring, or auditing. It is not necessarily the model\u2019s private chain-of-thought; traces typically expose operational events and selected inputs/outputs, subject to privacy/redaction. Give a concise definition and mention the term can vary by platform.\\\"}')]), ChatMessage(role=<MessageRole.TOOL: 'tool'>, additional_kwargs={'tool_call_id': 'call_AiuL7gjOj6TBkbrw2xNb4Vpb'}, blocks=[TextBlock(block_type='text', text='Agent writer_agent is now handling the request due to the following reason: Key facts: \u201cagent trace\u201d is a context-dependent term, usually a chronological record of an AI agent\u2019s execution. It may capture events such as user input, model calls, tool/function calls, observations/results, state transitions, timing, and errors, often organized as spans for debugging, monitoring, or auditing. It is not necessarily the model\u2019s private chain-of-thought; traces typically expose operational events and selected inputs/outputs, subject to privacy/redaction. Give a concise definition and mention the term can vary by platform..\\\\nPlease continue with the current request.')])], current_agent_name='writer_agent')\"}"
}
},
{
"key": "input.mime_type",
"value": {
"stringValue": "application/json"
}
},
{
"key": "output.value",
"value": {
"stringValue": "AgentSetup(input=[6 items], current_agent_name='writer_agent')"
}
},
{
"key": "output.mime_type",
"value": {
"stringValue": "text/plain"
}
},
{
"key": "openinference.span.kind",
"value": {
"stringValue": "CHAIN"
}
}
],
"status": {
"code": 1
},
"flags": 256
},
{
"traceId": "b2a00495369de00b1b6befb7845030f2",
"spanId": "55f57c1271a92b9f",
"parentSpanId": "636940f2f8057e5a",
"name": "OpenAILike._prepare_chat_with_tools",
"kind": 1,
"startTimeUnixNano": "1791061376593423000",
"endTimeUnixNano": "1791061376593716000",
"attributes": [
{
"key": "llm.model_name",
"value": {
"stringValue": "openai/gpt-6-luna"
}
},
{
"key": "llm.invocation_parameters",
"value": {
"stringValue": "{\"context_window\":3900,\"num_output\":-1,\"is_chat_model\":true,\"is_function_calling_model\":true,\"model_name\":\"openai/gpt-6-luna\"}"
}
},
{
"key": "llm.provider",
"value": {
"stringValue": "openai"
}
},
{
"key": "llm.system",
"value": {
"stringValue": "openai"
}
},
{
"key": "input.value",
"value": {
"stringValue": "{\"tools\": [], \"user_msg\": null, \"chat_history\": [\"ChatMessage(role=<MessageRole.SYSTEM: 'system'>, additional_kwargs={}, blocks=[TextBlock(block_type='text', text='Write a short answer from the facts.')])\", \"ChatMessage(role=<MessageRole.USER: 'user'>, additional_kwargs={}, blocks=[TextBlock(block_type='text', text='What is an agent trace?')])\", \"ChatMessage(role=<MessageRole.ASSISTANT: 'assistant'>, additional_kwargs={'tool_calls': [ChatCompletionMessageFunctionToolCall(id='call_uNNvo1VxA0Cja9WAGq3md5Nf', function=Function(arguments='{\\\"to_agent\\\":\\\"search_agent\\\",\\\"reason\\\":\\\"Gather a concise, accurate explanation of the term \u201cagent trace,\u201d noting possible meanings across AI/agent systems and any distinction from related concepts.\\\"}', name='handoff'), type='function', index=0)]}, blocks=[ToolCallBlock(block_type='tool_call', tool_call_id='call_uNNvo1VxA0Cja9WAGq3md5Nf', tool_name='handoff', tool_kwargs='{\\\"to_agent\\\":\\\"search_agent\\\",\\\"reason\\\":\\\"Gather a concise, accurate explanation of the term \u201cagent trace,\u201d noting possible meanings across AI/agent systems and any distinction from related concepts.\\\"}')])\", \"ChatMessage(role=<MessageRole.TOOL: 'tool'>, additional_kwargs={'tool_call_id': 'call_uNNvo1VxA0Cja9WAGq3md5Nf'}, blocks=[TextBlock(block_type='text', text='Agent search_agent is now handling the request due to the following reason: Gather a concise, accurate explanation of the term \u201cagent trace,\u201d noting possible meanings across AI/agent systems and any distinction from related concepts..\\\\nPlease continue with the current request.')])\", \"ChatMessage(role=<MessageRole.ASSISTANT: 'assistant'>, additional_kwargs={'tool_calls': [ChatCompletionMessageFunctionToolCall(id='call_AiuL7gjOj6TBkbrw2xNb4Vpb', function=Function(arguments='{\\\"to_agent\\\":\\\"writer_agent\\\",\\\"reason\\\":\\\"Key facts: \u201cagent trace\u201d is a context-dependent term, usually a chronological record of an AI agent\u2019s execution. It may capture events such as user input, model calls, tool/function calls, observations/results, state transitions, timing, and errors, often organized as spans for debugging, monitoring, or auditing. It is not necessarily the model\u2019s private chain-of-thought; traces typically expose operational events and selected inputs/outputs, subject to privacy/redaction. Give a concise definition and mention the term can vary by platform.\\\"}', name='handoff'), type='function', index=0)]}, blocks=[ToolCallBlock(block_type='tool_call', tool_call_id='call_AiuL7gjOj6TBkbrw2xNb4Vpb', tool_name='handoff', tool_kwargs='{\\\"to_agent\\\":\\\"writer_agent\\\",\\\"reason\\\":\\\"Key facts: \u201cagent trace\u201d is a context-dependent term, usually a chronological record of an AI agent\u2019s execution. It may capture events such as user input, model calls, tool/function calls, observations/results, state transitions, timing, and errors, often organized as spans for debugging, monitoring, or auditing. It is not necessarily the model\u2019s private chain-of-thought; traces typically expose operational events and selected inputs/outputs, subject to privacy/redaction. Give a concise definition and mention the term can vary by platform.\\\"}')])\", \"ChatMessage(role=<MessageRole.TOOL: 'tool'>, additional_kwargs={'tool_call_id': 'call_AiuL7gjOj6TBkbrw2xNb4Vpb'}, blocks=[TextBlock(block_type='text', text='Agent writer_agent is now handling the request due to the following reason: Key facts: \u201cagent trace\u201d is a context-dependent term, usually a chronological record of an AI agent\u2019s execution. It may capture events such as user input, model calls, tool/function calls, observations/results, state transitions, timing, and errors, often organized as spans for debugging, monitoring, or auditing. It is not necessarily the model\u2019s private chain-of-thought; traces typically expose operational events and selected inputs/outputs, subject to privacy/redaction. Give a concise definition and mention the term can vary by platform..\\\\nPlease continue with the current request.')])\"], \"verbose\": false, \"allow_parallel_tool_calls\": true, \"tool_required\": false}"
}
},
{
"key": "input.mime_type",
"value": {
"stringValue": "application/json"
}
},
{
"key": "output.value",
"value": {
"stringValue": "{\"messages\": [\"ChatMessage(role=<MessageRole.SYSTEM: 'system'>, additional_kwargs={}, blocks=[TextBlock(block_type='text', text='Write a short answer from the facts.')])\", \"ChatMessage(role=<MessageRole.USER: 'user'>, additional_kwargs={}, blocks=[TextBlock(block_type='text', text='What is an agent trace?')])\", \"ChatMessage(role=<MessageRole.ASSISTANT: 'assistant'>, additional_kwargs={'tool_calls': [ChatCompletionMessageFunctionToolCall(id='call_uNNvo1VxA0Cja9WAGq3md5Nf', function=Function(arguments='{\\\"to_agent\\\":\\\"search_agent\\\",\\\"reason\\\":\\\"Gather a concise, accurate explanation of the term \u201cagent trace,\u201d noting possible meanings across AI/agent systems and any distinction from related concepts.\\\"}', name='handoff'), type='function', index=0)]}, blocks=[ToolCallBlock(block_type='tool_call', tool_call_id='call_uNNvo1VxA0Cja9WAGq3md5Nf', tool_name='handoff', tool_kwargs='{\\\"to_agent\\\":\\\"search_agent\\\",\\\"reason\\\":\\\"Gather a concise, accurate explanation of the term \u201cagent trace,\u201d noting possible meanings across AI/agent systems and any distinction from related concepts.\\\"}')])\", \"ChatMessage(role=<MessageRole.TOOL: 'tool'>, additional_kwargs={'tool_call_id': 'call_uNNvo1VxA0Cja9WAGq3md5Nf'}, blocks=[TextBlock(block_type='text', text='Agent search_agent is now handling the request due to the following reason: Gather a concise, accurate explanation of the term \u201cagent trace,\u201d noting possible meanings across AI/agent systems and any distinction from related concepts..\\\\nPlease continue with the current request.')])\", \"ChatMessage(role=<MessageRole.ASSISTANT: 'assistant'>, additional_kwargs={'tool_calls': [ChatCompletionMessageFunctionToolCall(id='call_AiuL7gjOj6TBkbrw2xNb4Vpb', function=Function(arguments='{\\\"to_agent\\\":\\\"writer_agent\\\",\\\"reason\\\":\\\"Key facts: \u201cagent trace\u201d is a context-dependent term, usually a chronological record of an AI agent\u2019s execution. It may capture events such as user input, model calls, tool/function calls, observations/results, state transitions, timing, and errors, often organized as spans for debugging, monitoring, or auditing. It is not necessarily the model\u2019s private chain-of-thought; traces typically expose operational events and selected inputs/outputs, subject to privacy/redaction. Give a concise definition and mention the term can vary by platform.\\\"}', name='handoff'), type='function', index=0)]}, blocks=[ToolCallBlock(block_type='tool_call', tool_call_id='call_AiuL7gjOj6TBkbrw2xNb4Vpb', tool_name='handoff', tool_kwargs='{\\\"to_agent\\\":\\\"writer_agent\\\",\\\"reason\\\":\\\"Key facts: \u201cagent trace\u201d is a context-dependent term, usually a chronological record of an AI agent\u2019s execution. It may capture events such as user input, model calls, tool/function calls, observations/results, state transitions, timing, and errors, often organized as spans for debugging, monitoring, or auditing. It is not necessarily the model\u2019s private chain-of-thought; traces typically expose operational events and selected inputs/outputs, subject to privacy/redaction. Give a concise definition and mention the term can vary by platform.\\\"}')])\", \"ChatMessage(role=<MessageRole.TOOL: 'tool'>, additional_kwargs={'tool_call_id': 'call_AiuL7gjOj6TBkbrw2xNb4Vpb'}, blocks=[TextBlock(block_type='text', text='Agent writer_agent is now handling the request due to the following reason: Key facts: \u201cagent trace\u201d is a context-dependent term, usually a chronological record of an AI agent\u2019s execution. It may capture events such as user input, model calls, tool/function calls, observations/results, state transitions, timing, and errors, often organized as spans for debugging, monitoring, or auditing. It is not necessarily the model\u2019s private chain-of-thought; traces typically expose operational events and selected inputs/outputs, subject to privacy/redaction. Give a concise definition and mention the term can vary by platform..\\\\nPlease continue with the current request.')])\"], \"tools\": null, \"tool_choice\": null}"
}
},
{
"key": "output.mime_type",
"value": {
"stringValue": "application/json"
}
},
{
"key": "openinference.span.kind",
"value": {
"stringValue": "LLM"
}
}
],
"status": {
"code": 1
},
"flags": 256
},
{
"traceId": "b2a00495369de00b1b6befb7845030f2",
"spanId": "f31a99eb06ab44f4",
"parentSpanId": "a5d9c37e5e99a147",
"name": "OpenAILike.achat",
"kind": 1,
"startTimeUnixNano": "1791061376593898000",
"endTimeUnixNano": "1791061377855904000",
"attributes": [
{
"key": "llm.model_name",
"value": {
"stringValue": "openai/gpt-6-luna"
}
},
{
"key": "llm.invocation_parameters",
"value": {
"stringValue": "{\"context_window\":3900,\"num_output\":-1,\"is_chat_model\":true,\"is_function_calling_model\":true,\"model_name\":\"openai/gpt-6-luna\"}"
}
},
{
"key": "llm.provider",
"value": {
"stringValue": "openai"
}
},
{
"key": "llm.system",
"value": {
"stringValue": "openai"
}
},
{
"key": "input.value",
"value": {
"stringValue": "{\"messages\": [\"ChatMessage(role=<MessageRole.SYSTEM: 'system'>, additional_kwargs={}, blocks=[TextBlock(block_type='text', text='Write a short answer from the facts.')])\", \"ChatMessage(role=<MessageRole.USER: 'user'>, additional_kwargs={}, blocks=[TextBlock(block_type='text', text='What is an agent trace?')])\", \"ChatMessage(role=<MessageRole.ASSISTANT: 'assistant'>, additional_kwargs={'tool_calls': [ChatCompletionMessageFunctionToolCall(id='call_uNNvo1VxA0Cja9WAGq3md5Nf', function=Function(arguments='{\\\"to_agent\\\":\\\"search_agent\\\",\\\"reason\\\":\\\"Gather a concise, accurate explanation of the term \u201cagent trace,\u201d noting possible meanings across AI/agent systems and any distinction from related concepts.\\\"}', name='handoff'), type='function', index=0)]}, blocks=[ToolCallBlock(block_type='tool_call', tool_call_id='call_uNNvo1VxA0Cja9WAGq3md5Nf', tool_name='handoff', tool_kwargs='{\\\"to_agent\\\":\\\"search_agent\\\",\\\"reason\\\":\\\"Gather a concise, accurate explanation of the term \u201cagent trace,\u201d noting possible meanings across AI/agent systems and any distinction from related concepts.\\\"}')])\", \"ChatMessage(role=<MessageRole.TOOL: 'tool'>, additional_kwargs={'tool_call_id': 'call_uNNvo1VxA0Cja9WAGq3md5Nf'}, blocks=[TextBlock(block_type='text', text='Agent search_agent is now handling the request due to the following reason: Gather a concise, accurate explanation of the term \u201cagent trace,\u201d noting possible meanings across AI/agent systems and any distinction from related concepts..\\\\nPlease continue with the current request.')])\", \"ChatMessage(role=<MessageRole.ASSISTANT: 'assistant'>, additional_kwargs={'tool_calls': [ChatCompletionMessageFunctionToolCall(id='call_AiuL7gjOj6TBkbrw2xNb4Vpb', function=Function(arguments='{\\\"to_agent\\\":\\\"writer_agent\\\",\\\"reason\\\":\\\"Key facts: \u201cagent trace\u201d is a context-dependent term, usually a chronological record of an AI agent\u2019s execution. It may capture events such as user input, model calls, tool/function calls, observations/results, state transitions, timing, and errors, often organized as spans for debugging, monitoring, or auditing. It is not necessarily the model\u2019s private chain-of-thought; traces typically expose operational events and selected inputs/outputs, subject to privacy/redaction. Give a concise definition and mention the term can vary by platform.\\\"}', name='handoff'), type='function', index=0)]}, blocks=[ToolCallBlock(block_type='tool_call', tool_call_id='call_AiuL7gjOj6TBkbrw2xNb4Vpb', tool_name='handoff', tool_kwargs='{\\\"to_agent\\\":\\\"writer_agent\\\",\\\"reason\\\":\\\"Key facts: \u201cagent trace\u201d is a context-dependent term, usually a chronological record of an AI agent\u2019s execution. It may capture events such as user input, model calls, tool/function calls, observations/results, state transitions, timing, and errors, often organized as spans for debugging, monitoring, or auditing. It is not necessarily the model\u2019s private chain-of-thought; traces typically expose operational events and selected inputs/outputs, subject to privacy/redaction. Give a concise definition and mention the term can vary by platform.\\\"}')])\", \"ChatMessage(role=<MessageRole.TOOL: 'tool'>, additional_kwargs={'tool_call_id': 'call_AiuL7gjOj6TBkbrw2xNb4Vpb'}, blocks=[TextBlock(block_type='text', text='Agent writer_agent is now handling the request due to the following reason: Key facts: \u201cagent trace\u201d is a context-dependent term, usually a chronological record of an AI agent\u2019s execution. It may capture events such as user input, model calls, tool/function calls, observations/results, state transitions, timing, and errors, often organized as spans for debugging, monitoring, or auditing. It is not necessarily the model\u2019s private chain-of-thought; traces typically expose operational events and selected inputs/outputs, subject to privacy/redaction. Give a concise definition and mention the term can vary by platform..\\\\nPlease continue with the current request.')])\"], \"kwargs\": {\"tools\": null, \"tool_choice\": null}}"
}
},
{
"key": "input.mime_type",
"value": {
"stringValue": "application/json"
}
},
{
"key": "llm.input_messages.0.message.role",
"value": {
"stringValue": "system"
}
},
{
"key": "llm.input_messages.0.message.content",
"value": {
"stringValue": "Write a short answer from the facts."
}
},
{
"key": "llm.input_messages.1.message.role",
"value": {
"stringValue": "user"
}
},
{
"key": "llm.input_messages.1.message.content",
"value": {
"stringValue": "What is an agent trace?"
}
},
{
"key": "llm.input_messages.2.message.role",
"value": {
"stringValue": "assistant"
}
},
{
"key": "llm.input_messages.2.message.tool_calls.0.tool_call.id",
"value": {
"stringValue": "call_uNNvo1VxA0Cja9WAGq3md5Nf"
}
},
{
"key": "llm.input_messages.2.message.tool_calls.0.tool_call.function.name",
"value": {
"stringValue": "handoff"
}
},
{
"key": "llm.input_messages.2.message.tool_calls.0.tool_call.function.arguments",
"value": {
"stringValue": "{\"to_agent\":\"search_agent\",\"reason\":\"Gather a concise, accurate explanation of the term \u201cagent trace,\u201d noting possible meanings across AI/agent systems and any distinction from related concepts.\"}"
}
},
{
"key": "llm.input_messages.3.message.role",
"value": {
"stringValue": "tool"
}
},
{
"key": "llm.input_messages.3.message.content",
"value": {
"stringValue": "Agent search_agent is now handling the request due to the following reason: Gather a concise, accurate explanation of the term \u201cagent trace,\u201d noting possible meanings across AI/agent systems and any distinction from related concepts..\nPlease continue with the current request."
}
},
{
"key": "llm.input_messages.3.message.tool_call_id",
"value": {
"stringValue": "call_uNNvo1VxA0Cja9WAGq3md5Nf"
}
},
{
"key": "llm.input_messages.4.message.role",
"value": {
"stringValue": "assistant"
}
},
{
"key": "llm.input_messages.4.message.tool_calls.0.tool_call.id",
"value": {
"stringValue": "call_AiuL7gjOj6TBkbrw2xNb4Vpb"
}
},
{
"key": "llm.input_messages.4.message.tool_calls.0.tool_call.function.name",
"value": {
"stringValue": "handoff"
}
},
{
"key": "llm.input_messages.4.message.tool_calls.0.tool_call.function.arguments",
"value": {
"stringValue": "{\"to_agent\":\"writer_agent\",\"reason\":\"Key facts: \u201cagent trace\u201d is a context-dependent term, usually a chronological record of an AI agent\u2019s execution. It may capture events such as user input, model calls, tool/function calls, observations/results, state transitions, timing, and errors, often organized as spans for debugging, monitoring, or auditing. It is not necessarily the model\u2019s private chain-of-thought; traces typically expose operational events and selected inputs/outputs, subject to privacy/redaction. Give a concise definition and mention the term can vary by platform.\"}"
}
},
{
"key": "llm.input_messages.5.message.role",
"value": {
"stringValue": "tool"
}
},
{
"key": "llm.input_messages.5.message.content",
"value": {
"stringValue": "Agent writer_agent is now handling the request due to the following reason: Key facts: \u201cagent trace\u201d is a context-dependent term, usually a chronological record of an AI agent\u2019s execution. It may capture events such as user input, model calls, tool/function calls, observations/results, state transitions, timing, and errors, often organized as spans for debugging, monitoring, or auditing. It is not necessarily the model\u2019s private chain-of-thought; traces typically expose operational events and selected inputs/outputs, subject to privacy/redaction. Give a concise definition and mention the term can vary by platform..\nPlease continue with the current request."
}
},
{
"key": "llm.input_messages.5.message.tool_call_id",
"value": {
"stringValue": "call_AiuL7gjOj6TBkbrw2xNb4Vpb"
}
},
{
"key": "output.value",
"value": {
"stringValue": "assistant: An **agent trace** is a record of an AI agent\u2019s execution\u2014such as model calls, tool use, results, and errors. It helps with debugging and monitoring, and usually records operational events rather than the model\u2019s private chain-of-thought. The exact details vary by platform."
}
},
{
"key": "llm.token_count.prompt",
"value": {
"intValue": "400"
}
},
{
"key": "llm.token_count.prompt_details.cache_read",
"value": {
"intValue": "0"
}
},
{
"key": "llm.token_count.prompt_details.audio",
"value": {
"intValue": "0"
}
},
{
"key": "llm.token_count.completion",
"value": {
"intValue": "61"
}
},
{
"key": "llm.token_count.completion_details.reasoning",
"value": {
"intValue": "0"
}
},
{
"key": "llm.token_count.completion_details.audio",
"value": {
"intValue": "0"
}
},
{
"key": "llm.token_count.total",
"value": {
"intValue": "461"
}
},
{
"key": "llm.output_messages.0.message.role",
"value": {
"stringValue": "assistant"
}
},
{
"key": "llm.output_messages.0.message.content",
"value": {
"stringValue": "An **agent trace** is a record of an AI agent\u2019s execution\u2014such as model calls, tool use, results, and errors. It helps with debugging and monitoring, and usually records operational events rather than the model\u2019s private chain-of-thought. The exact details vary by platform."
}
},
{
"key": "openinference.span.kind",
"value": {
"stringValue": "LLM"
}
}
],
"status": {
"code": 1
},
"flags": 256
},
{
"traceId": "b2a00495369de00b1b6befb7845030f2",
"spanId": "a5d9c37e5e99a147",
"parentSpanId": "636940f2f8057e5a",
"name": "OpenAILike.achat",
"kind": 1,
"startTimeUnixNano": "1791061376593758000",
"endTimeUnixNano": "1791061377856038000",
"attributes": [
{
"key": "llm.model_name",
"value": {
"stringValue": "openai/gpt-6-luna"
}
},
{
"key": "llm.invocation_parameters",
"value": {
"stringValue": "{\"context_window\":3900,\"num_output\":-1,\"is_chat_model\":true,\"is_function_calling_model\":true,\"model_name\":\"openai/gpt-6-luna\"}"
}
},
{
"key": "llm.provider",
"value": {
"stringValue": "openai"
}
},
{
"key": "llm.system",
"value": {
"stringValue": "openai"
}
},
{
"key": "input.value",
"value": {
"stringValue": "{\"messages\": [\"ChatMessage(role=<MessageRole.SYSTEM: 'system'>, additional_kwargs={}, blocks=[TextBlock(block_type='text', text='Write a short answer from the facts.')])\", \"ChatMessage(role=<MessageRole.USER: 'user'>, additional_kwargs={}, blocks=[TextBlock(block_type='text', text='What is an agent trace?')])\", \"ChatMessage(role=<MessageRole.ASSISTANT: 'assistant'>, additional_kwargs={'tool_calls': [ChatCompletionMessageFunctionToolCall(id='call_uNNvo1VxA0Cja9WAGq3md5Nf', function=Function(arguments='{\\\"to_agent\\\":\\\"search_agent\\\",\\\"reason\\\":\\\"Gather a concise, accurate explanation of the term \u201cagent trace,\u201d noting possible meanings across AI/agent systems and any distinction from related concepts.\\\"}', name='handoff'), type='function', index=0)]}, blocks=[ToolCallBlock(block_type='tool_call', tool_call_id='call_uNNvo1VxA0Cja9WAGq3md5Nf', tool_name='handoff', tool_kwargs='{\\\"to_agent\\\":\\\"search_agent\\\",\\\"reason\\\":\\\"Gather a concise, accurate explanation of the term \u201cagent trace,\u201d noting possible meanings across AI/agent systems and any distinction from related concepts.\\\"}')])\", \"ChatMessage(role=<MessageRole.TOOL: 'tool'>, additional_kwargs={'tool_call_id': 'call_uNNvo1VxA0Cja9WAGq3md5Nf'}, blocks=[TextBlock(block_type='text', text='Agent search_agent is now handling the request due to the following reason: Gather a concise, accurate explanation of the term \u201cagent trace,\u201d noting possible meanings across AI/agent systems and any distinction from related concepts..\\\\nPlease continue with the current request.')])\", \"ChatMessage(role=<MessageRole.ASSISTANT: 'assistant'>, additional_kwargs={'tool_calls': [ChatCompletionMessageFunctionToolCall(id='call_AiuL7gjOj6TBkbrw2xNb4Vpb', function=Function(arguments='{\\\"to_agent\\\":\\\"writer_agent\\\",\\\"reason\\\":\\\"Key facts: \u201cagent trace\u201d is a context-dependent term, usually a chronological record of an AI agent\u2019s execution. It may capture events such as user input, model calls, tool/function calls, observations/results, state transitions, timing, and errors, often organized as spans for debugging, monitoring, or auditing. It is not necessarily the model\u2019s private chain-of-thought; traces typically expose operational events and selected inputs/outputs, subject to privacy/redaction. Give a concise definition and mention the term can vary by platform.\\\"}', name='handoff'), type='function', index=0)]}, blocks=[ToolCallBlock(block_type='tool_call', tool_call_id='call_AiuL7gjOj6TBkbrw2xNb4Vpb', tool_name='handoff', tool_kwargs='{\\\"to_agent\\\":\\\"writer_agent\\\",\\\"reason\\\":\\\"Key facts: \u201cagent trace\u201d is a context-dependent term, usually a chronological record of an AI agent\u2019s execution. It may capture events such as user input, model calls, tool/function calls, observations/results, state transitions, timing, and errors, often organized as spans for debugging, monitoring, or auditing. It is not necessarily the model\u2019s private chain-of-thought; traces typically expose operational events and selected inputs/outputs, subject to privacy/redaction. Give a concise definition and mention the term can vary by platform.\\\"}')])\", \"ChatMessage(role=<MessageRole.TOOL: 'tool'>, additional_kwargs={'tool_call_id': 'call_AiuL7gjOj6TBkbrw2xNb4Vpb'}, blocks=[TextBlock(block_type='text', text='Agent writer_agent is now handling the request due to the following reason: Key facts: \u201cagent trace\u201d is a context-dependent term, usually a chronological record of an AI agent\u2019s execution. It may capture events such as user input, model calls, tool/function calls, observations/results, state transitions, timing, and errors, often organized as spans for debugging, monitoring, or auditing. It is not necessarily the model\u2019s private chain-of-thought; traces typically expose operational events and selected inputs/outputs, subject to privacy/redaction. Give a concise definition and mention the term can vary by platform..\\\\nPlease continue with the current request.')])\"], \"kwargs\": {\"tools\": null, \"tool_choice\": null}}"
}
},
{
"key": "input.mime_type",
"value": {
"stringValue": "application/json"
}
},
{
"key": "output.value",
"value": {
"stringValue": "{\"message\":{\"role\":\"assistant\",\"additional_kwargs\":{},\"blocks\":[{\"text\":\"An **agent trace** is a record of an AI agent\u2019s execution\u2014such as model calls, tool use, results, and errors. It helps with debugging and monitoring, and usually records operational events rather than the model\u2019s private chain-of-thought. The exact details vary by platform.\"}]},\"raw\":{\"id\":\"chatcmpl-EV1AeFVtpOzMvGNYEsqPrXBYWlFnF\",\"choices\":[{\"finish_reason\":\"stop\",\"index\":0,\"message\":{\"content\":\"An **agent trace** is a record of an AI agent\u2019s execution\u2014such as model calls, tool use, results, and errors. It helps with debugging and monitoring, and usually records operational events rather than the model\u2019s private chain-of-thought. The exact details vary by platform.\",\"role\":\"assistant\",\"annotations\":[],\"provider_specific_fields\":{\"refusal\":null}},\"provider_specific_fields\":{}}],\"created\":1791061376,\"model\":\"openai/gpt-6-luna\",\"object\":\"chat.completion\",\"service_tier\":\"default\",\"usage\":{\"completion_tokens\":61,\"prompt_tokens\":400,\"total_tokens\":461,\"completion_tokens_details\":{\"accepted_prediction_tokens\":0,\"audio_tokens\":0,\"reasoning_tokens\":0,\"rejected_prediction_tokens\":0},\"prompt_tokens_details\":{\"audio_tokens\":0,\"cache_write_tokens\":0,\"cached_tokens\":0,\"cache_creation_tokens\":0}}},\"logprobs\":null,\"additional_kwargs\":{\"prompt_tokens\":400,\"completion_tokens\":61,\"total_tokens\":461}}"
}
},
{
"key": "output.mime_type",
"value": {
"stringValue": "application/json"
}
},
{
"key": "openinference.span.kind",
"value": {
"stringValue": "LLM"
}
}
],
"status": {
"code": 1
},
"flags": 256
},
{
"traceId": "b2a00495369de00b1b6befb7845030f2",
"spanId": "636940f2f8057e5a",
"parentSpanId": "c2f4febbff5e0910",
"name": "AgentWorkflow.run_agent_step",
"kind": 1,
"startTimeUnixNano": "1791061376593149000",
"endTimeUnixNano": "1791061377856449000",
"attributes": [
{
"key": "input.value",
"value": {
"stringValue": "{\"ctx\": \"<workflows.context.context.Context object at 0x10f4d4600>\", \"ev\": \"AgentSetup(input=[ChatMessage(role=<MessageRole.SYSTEM: 'system'>, additional_kwargs={}, blocks=[TextBlock(block_type='text', text='Write a short answer from the facts.')]), ChatMessage(role=<MessageRole.USER: 'user'>, additional_kwargs={}, blocks=[TextBlock(block_type='text', text='What is an agent trace?')]), ChatMessage(role=<MessageRole.ASSISTANT: 'assistant'>, additional_kwargs={'tool_calls': [ChatCompletionMessageFunctionToolCall(id='call_uNNvo1VxA0Cja9WAGq3md5Nf', function=Function(arguments='{\\\"to_agent\\\":\\\"search_agent\\\",\\\"reason\\\":\\\"Gather a concise, accurate explanation of the term \u201cagent trace,\u201d noting possible meanings across AI/agent systems and any distinction from related concepts.\\\"}', name='handoff'), type='function', index=0)]}, blocks=[ToolCallBlock(block_type='tool_call', tool_call_id='call_uNNvo1VxA0Cja9WAGq3md5Nf', tool_name='handoff', tool_kwargs='{\\\"to_agent\\\":\\\"search_agent\\\",\\\"reason\\\":\\\"Gather a concise, accurate explanation of the term \u201cagent trace,\u201d noting possible meanings across AI/agent systems and any distinction from related concepts.\\\"}')]), ChatMessage(role=<MessageRole.TOOL: 'tool'>, additional_kwargs={'tool_call_id': 'call_uNNvo1VxA0Cja9WAGq3md5Nf'}, blocks=[TextBlock(block_type='text', text='Agent search_agent is now handling the request due to the following reason: Gather a concise, accurate explanation of the term \u201cagent trace,\u201d noting possible meanings across AI/agent systems and any distinction from related concepts..\\\\nPlease continue with the current request.')]), ChatMessage(role=<MessageRole.ASSISTANT: 'assistant'>, additional_kwargs={'tool_calls': [ChatCompletionMessageFunctionToolCall(id='call_AiuL7gjOj6TBkbrw2xNb4Vpb', function=Function(arguments='{\\\"to_agent\\\":\\\"writer_agent\\\",\\\"reason\\\":\\\"Key facts: \u201cagent trace\u201d is a context-dependent term, usually a chronological record of an AI agent\u2019s execution. It may capture events such as user input, model calls, tool/function calls, observations/results, state transitions, timing, and errors, often organized as spans for debugging, monitoring, or auditing. It is not necessarily the model\u2019s private chain-of-thought; traces typically expose operational events and selected inputs/outputs, subject to privacy/redaction. Give a concise definition and mention the term can vary by platform.\\\"}', name='handoff'), type='function', index=0)]}, blocks=[ToolCallBlock(block_type='tool_call', tool_call_id='call_AiuL7gjOj6TBkbrw2xNb4Vpb', tool_name='handoff', tool_kwargs='{\\\"to_agent\\\":\\\"writer_agent\\\",\\\"reason\\\":\\\"Key facts: \u201cagent trace\u201d is a context-dependent term, usually a chronological record of an AI agent\u2019s execution. It may capture events such as user input, model calls, tool/function calls, observations/results, state transitions, timing, and errors, often organized as spans for debugging, monitoring, or auditing. It is not necessarily the model\u2019s private chain-of-thought; traces typically expose operational events and selected inputs/outputs, subject to privacy/redaction. Give a concise definition and mention the term can vary by platform.\\\"}')]), ChatMessage(role=<MessageRole.TOOL: 'tool'>, additional_kwargs={'tool_call_id': 'call_AiuL7gjOj6TBkbrw2xNb4Vpb'}, blocks=[TextBlock(block_type='text', text='Agent writer_agent is now handling the request due to the following reason: Key facts: \u201cagent trace\u201d is a context-dependent term, usually a chronological record of an AI agent\u2019s execution. It may capture events such as user input, model calls, tool/function calls, observations/results, state transitions, timing, and errors, often organized as spans for debugging, monitoring, or auditing. It is not necessarily the model\u2019s private chain-of-thought; traces typically expose operational events and selected inputs/outputs, subject to privacy/redaction. Give a concise definition and mention the term can vary by platform..\\\\nPlease continue with the current request.')])], current_agent_name='writer_agent')\"}"
}
},
{
"key": "input.mime_type",
"value": {
"stringValue": "application/json"
}
},
{
"key": "output.value",
"value": {
"stringValue": "AgentOutput(response=ChatMessage(role=<MessageRole.ASSISTANT: 'assistant'>, additional_kwargs={}, blocks=[TextBlock(block_type='text', text='An **agent trace** is a record of an AI agent\u2019s executio..."
}
},
{
"key": "output.mime_type",
"value": {
"stringValue": "text/plain"
}
},
{
"key": "openinference.span.kind",
"value": {
"stringValue": "CHAIN"
}
}
],
"status": {
"code": 1
},
"flags": 256
},
{
"traceId": "b2a00495369de00b1b6befb7845030f2",
"spanId": "9f641858404e31ac",
"parentSpanId": "c2f4febbff5e0910",
"name": "AgentWorkflow.parse_agent_output",
"kind": 1,
"startTimeUnixNano": "1791061377857211000",
"endTimeUnixNano": "1791061377858007000",
"attributes": [
{
"key": "input.value",
"value": {
"stringValue": "{\"ctx\": \"<workflows.context.context.Context object at 0x10f3cb410>\", \"ev\": \"AgentOutput(response=ChatMessage(role=<MessageRole.ASSISTANT: 'assistant'>, additional_kwargs={}, blocks=[TextBlock(block_type='text', text='An **agent trace** is a record of an AI agent\u2019s execution\u2014such as model calls, tool use, results, and errors. It helps with debugging and monitoring, and usually records operational events rather than the model\u2019s private chain-of-thought. The exact details vary by platform.')]), structured_response=None, current_agent_name='writer_agent', raw={'id': 'chatcmpl-EV1AeFVtpOzMvGNYEsqPrXBYWlFnF', 'choices': [{'finish_reason': 'stop', 'index': 0, 'logprobs': None, 'message': {'content': 'An **agent trace** is a record of an AI agent\u2019s execution\u2014such as model calls, tool use, results, and errors. It helps with debugging and monitoring, and usually records operational events rather than the model\u2019s private chain-of-thought. The exact details vary by platform.', 'refusal': None, 'role': 'assistant', 'annotations': [], 'audio': None, 'function_call': None, 'tool_calls': None, 'provider_specific_fields': {'refusal': None}}, 'provider_specific_fields': {}}], 'created': 1791061376, 'model': 'openai/gpt-6-luna', 'object': 'chat.completion', 'moderation': None, 'service_tier': 'default', 'system_fingerprint': None, 'usage': {'completion_tokens': 61, 'prompt_tokens': 400, 'total_tokens': 461, 'completion_tokens_details': {'accepted_prediction_tokens': 0, 'audio_tokens': 0, 'reasoning_tokens': 0, 'rejected_prediction_tokens': 0}, 'prompt_tokens_details': {'audio_tokens': 0, 'cache_write_tokens': 0, 'cached_tokens': 0, 'cache_creation_tokens': 0}}}, tool_calls=[], retry_messages=[])\"}"
}
},
{
"key": "input.mime_type",
"value": {
"stringValue": "application/json"
}
},
{
"key": "output.value",
"value": {
"stringValue": "StopEvent(result=AgentOutput(response=ChatMessage(role=<MessageRole.ASSISTANT: 'assistant'>, additional_kwargs={}, blocks=[TextBlock(block_type='text', text='An **agent trace** is a record of an AI..."
}
},
{
"key": "output.mime_type",
"value": {
"stringValue": "text/plain"
}
},
{
"key": "openinference.span.kind",
"value": {
"stringValue": "CHAIN"
}
}
],
"status": {
"code": 1
},
"flags": 256
},
{
"traceId": "b2a00495369de00b1b6befb7845030f2",
"spanId": "c2f4febbff5e0910",
"name": "AgentWorkflow.run",
"kind": 1,
"startTimeUnixNano": "1791061370989711000",
"endTimeUnixNano": "1791061377858428000",
"attributes": [
{
"key": "input.value",
"value": {
"stringValue": "{\"init_state\": {\"is_running\": false, \"config\": {\"steps\": {\"aggregate_tool_results\": {\"accepted_events\": [\"<ToolCallResult(*, tool_name: str, tool_kwargs: dict, tool_id: str, tool_output: llama_index.core.tools.types.ToolOutput, return_direct: bool) -> None>\"], \"retry_policy\": null, \"num_workers\": 4, \"accept_event_subclasses\": false, \"collection_param\": null, \"collect_params\": null, \"collection_policy\": null}, \"call_tool\": {\"accepted_events\": [\"<ToolCall(*, tool_name: str, tool_kwargs: dict, tool_id: str) -> None>\"], \"retry_policy\": null, \"num_workers\": 4, \"accept_event_subclasses\": false, \"collection_param\": null, \"collect_params\": null, \"collection_policy\": null}, \"init_run\": {\"accepted_events\": [\"<AgentWorkflowStartEvent() -> None>\"], \"retry_policy\": null, \"num_workers\": 4, \"accept_event_subclasses\": false, \"collection_param\": null, \"collect_params\": null, \"collection_policy\": null}, \"parse_agent_output\": {\"accepted_events\": [\"<AgentOutput(*, response: llama_index.core.base.llms.types.ChatMessage, structured_response: Optional[Dict[str, Any]] = None, current_agent_name: str, raw: Optional[Any] = None, tool_calls: list[llama_index.core.llms.llm.ToolSelection] = <factory>, retry_messages: list[llama_index.core.base.llms.types.ChatMessage] = <factory>) -> None>\"], \"retry_policy\": null, \"num_workers\": 4, \"accept_event_subclasses\": false, \"collection_param\": null, \"collect_params\": null, \"collection_policy\": null}, \"run_agent_step\": {\"accepted_events\": [\"<AgentSetup(*, input: list[llama_index.core.base.llms.types.ChatMessage], current_agent_name: str) -> None>\"], \"retry_policy\": null, \"num_workers\": 4, \"accept_event_subclasses\": false, \"collection_param\": null, \"collect_params\": null, \"collection_policy\": null}, \"setup_agent\": {\"accepted_events\": [\"<AgentInput(*, input: list[llama_index.core.base.llms.types.ChatMessage], current_agent_name: str) -> None>\"], \"retry_policy\": null, \"num_workers\": 4, \"accept_event_subclasses\": false, \"collection_param\": null, \"collect_params\": null, \"collection_policy\": null}}, \"timeout\": null, \"catch_error_handlers\": {}, \"handler_for_step\": {}, \"collection_bindings\": {}}, \"workers\": {\"aggregate_tool_results\": {\"queue\": [], \"config\": {\"accepted_events\": [\"<ToolCallResult(*, tool_name: str, tool_kwargs: dict, tool_id: str, tool_output: llama_index.core.tools.types.ToolOutput, return_direct: bool) -> None>\"], \"retry_policy\": null, \"num_workers\": 4, \"accept_event_subclasses\": false, \"collection_param\": null, \"collect_params\": null, \"collection_policy\": null}, \"in_progress\": [], \"collected_events\": {}, \"collected_waiters\": [], \"static_collect_events\": []}, \"call_tool\": {\"queue\": [], \"config\": {\"accepted_events\": [\"<ToolCall(*, tool_name: str, tool_kwargs: dict, tool_id: str) -> None>\"], \"retry_policy\": null, \"num_workers\": 4, \"accept_event_subclasses\": false, \"collection_param\": null, \"collect_params\": null, \"collection_policy\": null}, \"in_progress\": [], \"collected_events\": {}, \"collected_waiters\": [], \"static_collect_events\": []}, \"init_run\": {\"queue\": [], \"config\": {\"accepted_events\": [\"<AgentWorkflowStartEvent() -> None>\"], \"retry_policy\": null, \"num_workers\": 4, \"accept_event_subclasses\": false, \"collection_param\": null, \"collect_params\": null, \"collection_policy\": null}, \"in_progress\": [], \"collected_events\": {}, \"collected_waiters\": [], \"static_collect_events\": []}, \"parse_agent_output\": {\"queue\": [], \"config\": {\"accepted_events\": [\"<AgentOutput(*, response: llama_index.core.base.llms.types.ChatMessage, structured_response: Optional[Dict[str, Any]] = None, current_agent_name: str, raw: Optional[Any] = None, tool_calls: list[llama_index.core.llms.llm.ToolSelection] = <factory>, retry_messages: list[llama_index.core.base.llms.types.ChatMessage] = <factory>) -> None>\"], \"retry_policy\": null, \"num_workers\": 4, \"accept_event_subclasses\": false, \"collection_param\": null, \"collect_params\": null, \"collection_policy\": null}, \"in_progress\": [], \"collected_events\": {}, \"collected_waiters\": [], \"static_collect_events\": []}, \"run_agent_step\": {\"queue\": [], \"config\": {\"accepted_events\": [\"<AgentSetup(*, input: list[llama_index.core.base.llms.types.ChatMessage], current_agent_name: str) -> None>\"], \"retry_policy\": null, \"num_workers\": 4, \"accept_event_subclasses\": false, \"collection_param\": null, \"collect_params\": null, \"collection_policy\": null}, \"in_progress\": [], \"collected_events\": {}, \"collected_waiters\": [], \"static_collect_events\": []}, \"setup_agent\": {\"queue\": [], \"config\": {\"accepted_events\": [\"<AgentInput(*, input: list[llama_index.core.base.llms.types.ChatMessage], current_agent_name: str) -> None>\"], \"retry_policy\": null, \"num_workers\": 4, \"accept_event_subclasses\": false, \"collection_param\": null, \"collect_params\": null, \"collection_policy\": null}, \"in_progress\": [], \"collected_events\": {}, \"collected_waiters\": [], \"static_collect_events\": []}}, \"stream_seq\": 0, \"work_item_seq\": 0, \"streams\": {}, \"collection_release_states\": {}, \"children\": {}, \"elapsed_alive\": 0.0, \"last_alive_stamp\": null}, \"start_event\": \"AgentWorkflowStartEvent()\", \"tags\": {\"instrument_tags\": {\"llamaindex.run_id\": \"jAcb0RPqBf\"}}}"
}
},
{
"key": "input.mime_type",
"value": {
"stringValue": "application/json"
}
},
{
"key": "output.value",
"value": {
"stringValue": "StopEvent(result=AgentOutput(response=ChatMessage(role=<MessageRole.ASSISTANT: 'assistant'>, additional_kwargs={}, blocks=[TextBlock(block_type='text', text='An **agent trace** is a record of an AI..."
}
},
{
"key": "output.mime_type",
"value": {
"stringValue": "text/plain"
}
},
{
"key": "openinference.span.kind",
"value": {
"stringValue": "CHAIN"
}
}
],
"status": {
"code": 1
},
"flags": 256
}
]
}
]
}
]
}