quraite 0.0.1__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- quraite/__init__.py +3 -0
- quraite/adapters/__init__.py +134 -0
- quraite/adapters/agno_adapter.py +159 -0
- quraite/adapters/base.py +123 -0
- quraite/adapters/bedrock_agents_adapter.py +343 -0
- quraite/adapters/flowise_adapter.py +275 -0
- quraite/adapters/google_adk_adapter.py +209 -0
- quraite/adapters/http_adapter.py +239 -0
- quraite/adapters/langflow_adapter.py +192 -0
- quraite/adapters/langgraph_adapter.py +304 -0
- quraite/adapters/langgraph_server_adapter.py +252 -0
- quraite/adapters/n8n_adapter.py +220 -0
- quraite/adapters/openai_agents_adapter.py +269 -0
- quraite/adapters/pydantic_ai_adapter.py +312 -0
- quraite/adapters/smolagents_adapter.py +152 -0
- quraite/logger.py +62 -0
- quraite/schema/__init__.py +0 -0
- quraite/schema/message.py +54 -0
- quraite/schema/response.py +16 -0
- quraite/serve/__init__.py +1 -0
- quraite/serve/cloudflared.py +210 -0
- quraite/serve/local_agent.py +360 -0
- quraite/traces/traces_adk_openinference.json +379 -0
- quraite/traces/traces_agno_multi_agent.json +669 -0
- quraite/traces/traces_agno_openinference.json +321 -0
- quraite/traces/traces_crewai_openinference.json +155 -0
- quraite/traces/traces_langgraph_openinference.json +349 -0
- quraite/traces/traces_langgraph_openinference_multi_agent.json +2705 -0
- quraite/traces/traces_langgraph_traceloop.json +510 -0
- quraite/traces/traces_openai_agents_multi_agent_1.json +402 -0
- quraite/traces/traces_openai_agents_openinference.json +341 -0
- quraite/traces/traces_pydantic_openinference.json +286 -0
- quraite/traces/traces_pydantic_openinference_multi_agent_1.json +399 -0
- quraite/traces/traces_pydantic_openinference_multi_agent_2.json +398 -0
- quraite/traces/traces_smol_agents_openinference.json +397 -0
- quraite/traces/traces_smol_agents_tool_calling_openinference.json +704 -0
- quraite/tracing/__init__.py +24 -0
- quraite/tracing/constants.py +16 -0
- quraite/tracing/span_exporter.py +115 -0
- quraite/tracing/span_processor.py +49 -0
- quraite/tracing/tool_extractors.py +290 -0
- quraite/tracing/trace.py +494 -0
- quraite/tracing/types.py +179 -0
- quraite/tracing/utils.py +170 -0
- quraite/utils/__init__.py +0 -0
- quraite/utils/json_utils.py +269 -0
- quraite-0.0.1.dist-info/METADATA +44 -0
- quraite-0.0.1.dist-info/RECORD +49 -0
- quraite-0.0.1.dist-info/WHEEL +4 -0
|
@@ -0,0 +1,669 @@
|
|
|
1
|
+
[
|
|
2
|
+
{
|
|
3
|
+
"trace_id": "c0fa7b53",
|
|
4
|
+
"spans": [
|
|
5
|
+
{
|
|
6
|
+
"name": "ChatCompletion",
|
|
7
|
+
"context": {
|
|
8
|
+
"trace_id": "0xc0fa7b53c66c2d5597ea26fd9ab8c8f4",
|
|
9
|
+
"span_id": "0x4f932643a0c53c05",
|
|
10
|
+
"trace_state": "[]"
|
|
11
|
+
},
|
|
12
|
+
"kind": "SpanKind.INTERNAL",
|
|
13
|
+
"parent_id": "0xd660c3ff386ae3a2",
|
|
14
|
+
"start_time": "2025-11-27T10:23:11.947511Z",
|
|
15
|
+
"end_time": "2025-11-27T10:23:13.325110Z",
|
|
16
|
+
"status": {
|
|
17
|
+
"status_code": "OK"
|
|
18
|
+
},
|
|
19
|
+
"attributes": {
|
|
20
|
+
"llm.provider": "openai",
|
|
21
|
+
"llm.system": "openai",
|
|
22
|
+
"input.value": "{\"messages\": [{\"role\": \"developer\", \"content\": \"You are the leader of a team and sub-teams of AI Agents.\\nYour task is to coordinate the team to complete the user's request.\\n\\nHere are the members in your team:\\n<team_members>\\n - Agent 1:\\n - ID: math-agent\\n - Name: math agent\\n - Agent 2:\\n - ID: web-search-agent\\n - Name: web search agent\\n</team_members>\\n\\n<how_to_respond>\\n- Your role is to delegate tasks to members in your team with the highest likelihood of completing the user's request.\\n- Carefully analyze the tools available to the members and their roles before delegating tasks.\\n- You cannot use a member tool directly. You can only delegate tasks to members.\\n- When you delegate a task to another member, make sure to include:\\n - member_id (str): The ID of the member to delegate the task to. Use only the ID of the member, not the ID of the team followed by the ID of the member.\\n - task (str): A clear description of the task. Determine the best way to describe the task to the member.\\n- You can delegate tasks to multiple members at once.\\n- You must always analyze the responses from members before responding to the user.\\n- After analyzing the responses from the members, if you feel the task has been completed, you can stop and respond to the user.\\n- If you are NOT satisfied with the responses from the members, you should re-assign the task to a different member.\\n- For simple greetings, thanks, or questions about the team itself, you should respond directly.\\n- For all work requests, tasks, or questions requiring expertise, route to appropriate team members.\\n</how_to_respond>\\n\\n<instructions>\\nYou are a team of agents that can solve math problems and search the web for information. For math problems, use the math agent. For web search, use the web search agent. You do not have any prior factual knowledge so use the web search agent to get the information you need always.\\n</instructions>\\n\\n<additional_information>\\n- Use markdown to format your answers.\\n</additional_information>\"}, {\"role\": \"user\", \"content\": \"What is the 10 + 10 * 2?\"}], \"model\": \"gpt-4o-mini\", \"tools\": [{\"type\": \"function\", \"function\": {\"name\": \"delegate_task_to_member\", \"description\": \"Use this function to delegate a task to the selected team member.\\nYou must provide a clear and concise description of the task the member should achieve AND the expected output.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"member_id\": {\"type\": \"string\", \"description\": \"(str) The ID of the member to delegate the task to. Use only the ID of the member, not the ID of the team followed by the ID of the member.\"}, \"task\": {\"type\": \"string\", \"description\": \"(str) A clear and concise description of the task the member should achieve.\"}}, \"required\": [\"member_id\", \"task\"], \"additionalProperties\": false}}}]}",
|
|
23
|
+
"input.mime_type": "application/json",
|
|
24
|
+
"output.value": "{\"id\":\"chatcmpl-CgTRYwMPAJlGTbHScQs3oMMpctT6A\",\"choices\":[{\"finish_reason\":\"tool_calls\",\"index\":0,\"logprobs\":null,\"message\":{\"content\":null,\"refusal\":null,\"role\":\"assistant\",\"annotations\":[],\"tool_calls\":[{\"id\":\"call_zOP33MupFY43i9cXSwh0CBOy\",\"function\":{\"arguments\":\"{\\\"member_id\\\":\\\"math-agent\\\",\\\"task\\\":\\\"Calculate the result of the expression 10 + 10 * 2.\\\"}\",\"name\":\"delegate_task_to_member\"},\"type\":\"function\"}]}}],\"created\":1764238992,\"model\":\"gpt-4o-mini-2024-07-18\",\"object\":\"chat.completion\",\"service_tier\":\"default\",\"system_fingerprint\":\"fp_560af6e559\",\"usage\":{\"completion_tokens\":36,\"prompt_tokens\":571,\"total_tokens\":607,\"completion_tokens_details\":{\"accepted_prediction_tokens\":0,\"audio_tokens\":0,\"reasoning_tokens\":0,\"rejected_prediction_tokens\":0},\"prompt_tokens_details\":{\"audio_tokens\":0,\"cached_tokens\":0}}}",
|
|
25
|
+
"output.mime_type": "application/json",
|
|
26
|
+
"llm.tools.0.tool.json_schema": "{\"type\": \"function\", \"function\": {\"name\": \"delegate_task_to_member\", \"description\": \"Use this function to delegate a task to the selected team member.\\nYou must provide a clear and concise description of the task the member should achieve AND the expected output.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"member_id\": {\"type\": \"string\", \"description\": \"(str) The ID of the member to delegate the task to. Use only the ID of the member, not the ID of the team followed by the ID of the member.\"}, \"task\": {\"type\": \"string\", \"description\": \"(str) A clear and concise description of the task the member should achieve.\"}}, \"required\": [\"member_id\", \"task\"], \"additionalProperties\": false}}}",
|
|
27
|
+
"llm.invocation_parameters": "{\"model\": \"gpt-4o-mini\"}",
|
|
28
|
+
"llm.input_messages.0.message.role": "developer",
|
|
29
|
+
"llm.input_messages.0.message.content": "You are the leader of a team and sub-teams of AI Agents.\nYour task is to coordinate the team to complete the user's request.\n\nHere are the members in your team:\n<team_members>\n - Agent 1:\n - ID: math-agent\n - Name: math agent\n - Agent 2:\n - ID: web-search-agent\n - Name: web search agent\n</team_members>\n\n<how_to_respond>\n- Your role is to delegate tasks to members in your team with the highest likelihood of completing the user's request.\n- Carefully analyze the tools available to the members and their roles before delegating tasks.\n- You cannot use a member tool directly. You can only delegate tasks to members.\n- When you delegate a task to another member, make sure to include:\n - member_id (str): The ID of the member to delegate the task to. Use only the ID of the member, not the ID of the team followed by the ID of the member.\n - task (str): A clear description of the task. Determine the best way to describe the task to the member.\n- You can delegate tasks to multiple members at once.\n- You must always analyze the responses from members before responding to the user.\n- After analyzing the responses from the members, if you feel the task has been completed, you can stop and respond to the user.\n- If you are NOT satisfied with the responses from the members, you should re-assign the task to a different member.\n- For simple greetings, thanks, or questions about the team itself, you should respond directly.\n- For all work requests, tasks, or questions requiring expertise, route to appropriate team members.\n</how_to_respond>\n\n<instructions>\nYou are a team of agents that can solve math problems and search the web for information. For math problems, use the math agent. For web search, use the web search agent. You do not have any prior factual knowledge so use the web search agent to get the information you need always.\n</instructions>\n\n<additional_information>\n- Use markdown to format your answers.\n</additional_information>",
|
|
30
|
+
"llm.input_messages.1.message.role": "user",
|
|
31
|
+
"llm.input_messages.1.message.content": "What is the 10 + 10 * 2?",
|
|
32
|
+
"llm.model_name": "gpt-4o-mini-2024-07-18",
|
|
33
|
+
"llm.token_count.total": 607,
|
|
34
|
+
"llm.token_count.prompt": 571,
|
|
35
|
+
"llm.token_count.completion": 36,
|
|
36
|
+
"llm.token_count.prompt_details.cache_read": 0,
|
|
37
|
+
"llm.token_count.prompt_details.audio": 0,
|
|
38
|
+
"llm.token_count.completion_details.reasoning": 0,
|
|
39
|
+
"llm.token_count.completion_details.audio": 0,
|
|
40
|
+
"llm.output_messages.0.message.role": "assistant",
|
|
41
|
+
"llm.output_messages.0.message.tool_calls.0.tool_call.id": "call_zOP33MupFY43i9cXSwh0CBOy",
|
|
42
|
+
"llm.output_messages.0.message.tool_calls.0.tool_call.function.name": "delegate_task_to_member",
|
|
43
|
+
"llm.output_messages.0.message.tool_calls.0.tool_call.function.arguments": "{\"member_id\":\"math-agent\",\"task\":\"Calculate the result of the expression 10 + 10 * 2.\"}",
|
|
44
|
+
"openinference.span.kind": "LLM"
|
|
45
|
+
},
|
|
46
|
+
"events": [],
|
|
47
|
+
"links": [],
|
|
48
|
+
"resource": {
|
|
49
|
+
"attributes": {
|
|
50
|
+
"telemetry.sdk.language": "python",
|
|
51
|
+
"telemetry.sdk.name": "opentelemetry",
|
|
52
|
+
"telemetry.sdk.version": "1.38.0",
|
|
53
|
+
"service.name": "unknown_service"
|
|
54
|
+
},
|
|
55
|
+
"schema_url": ""
|
|
56
|
+
}
|
|
57
|
+
},
|
|
58
|
+
{
|
|
59
|
+
"name": "OpenAIChat.invoke",
|
|
60
|
+
"context": {
|
|
61
|
+
"trace_id": "0xc0fa7b53c66c2d5597ea26fd9ab8c8f4",
|
|
62
|
+
"span_id": "0xd660c3ff386ae3a2",
|
|
63
|
+
"trace_state": "[]"
|
|
64
|
+
},
|
|
65
|
+
"kind": "SpanKind.INTERNAL",
|
|
66
|
+
"parent_id": "0x664b8602df509578",
|
|
67
|
+
"start_time": "2025-11-27T10:23:11.863496Z",
|
|
68
|
+
"end_time": "2025-11-27T10:23:13.327073Z",
|
|
69
|
+
"status": {
|
|
70
|
+
"status_code": "OK"
|
|
71
|
+
},
|
|
72
|
+
"attributes": {
|
|
73
|
+
"input.mime_type": "application/json",
|
|
74
|
+
"input.value": "{\"messages\": [{\"id\": \"992c21c8-014f-4d98-be64-cbf311832327\", \"content\": \"You are the leader of a team and sub-teams of AI Agents.\\nYour task is to coordinate the team to complete the user's request.\\n\\nHere are the members in your team:\\n<team_members>\\n - Agent 1:\\n - ID: math-agent\\n - Name: math agent\\n - Agent 2:\\n - ID: web-search-agent\\n - Name: web search agent\\n</team_members>\\n\\n<how_to_respond>\\n- Your role is to delegate tasks to members in your team with the highest likelihood of completing the user's request.\\n- Carefully analyze the tools available to the members and their roles before delegating tasks.\\n- You cannot use a member tool directly. You can only delegate tasks to members.\\n- When you delegate a task to another member, make sure to include:\\n - member_id (str): The ID of the member to delegate the task to. Use only the ID of the member, not the ID of the team followed by the ID of the member.\\n - task (str): A clear description of the task. Determine the best way to describe the task to the member.\\n- You can delegate tasks to multiple members at once.\\n- You must always analyze the responses from members before responding to the user.\\n- After analyzing the responses from the members, if you feel the task has been completed, you can stop and respond to the user.\\n- If you are NOT satisfied with the responses from the members, you should re-assign the task to a different member.\\n- For simple greetings, thanks, or questions about the team itself, you should respond directly.\\n- For all work requests, tasks, or questions requiring expertise, route to appropriate team members.\\n</how_to_respond>\\n\\n<instructions>\\nYou are a team of agents that can solve math problems and search the web for information. For math problems, use the math agent. For web search, use the web search agent. You do not have any prior factual knowledge so use the web search agent to get the information you need always.\\n</instructions>\\n\\n<additional_information>\\n- Use markdown to format your answers.\\n</additional_information>\", \"from_history\": false, \"stop_after_tool_call\": false, \"role\": \"system\", \"created_at\": 1764238991}, {\"id\": \"ade3d92b-7fb5-4663-8ff0-d05466a2e090\", \"content\": \"What is the 10 + 10 * 2?\", \"from_history\": false, \"stop_after_tool_call\": false, \"role\": \"user\", \"created_at\": 1764238991}]}",
|
|
75
|
+
"llm.input_messages.0.message.role": "system",
|
|
76
|
+
"llm.input_messages.0.message.content": "You are the leader of a team and sub-teams of AI Agents.\nYour task is to coordinate the team to complete the user's request.\n\nHere are the members in your team:\n<team_members>\n - Agent 1:\n - ID: math-agent\n - Name: math agent\n - Agent 2:\n - ID: web-search-agent\n - Name: web search agent\n</team_members>\n\n<how_to_respond>\n- Your role is to delegate tasks to members in your team with the highest likelihood of completing the user's request.\n- Carefully analyze the tools available to the members and their roles before delegating tasks.\n- You cannot use a member tool directly. You can only delegate tasks to members.\n- When you delegate a task to another member, make sure to include:\n - member_id (str): The ID of the member to delegate the task to. Use only the ID of the member, not the ID of the team followed by the ID of the member.\n - task (str): A clear description of the task. Determine the best way to describe the task to the member.\n- You can delegate tasks to multiple members at once.\n- You must always analyze the responses from members before responding to the user.\n- After analyzing the responses from the members, if you feel the task has been completed, you can stop and respond to the user.\n- If you are NOT satisfied with the responses from the members, you should re-assign the task to a different member.\n- For simple greetings, thanks, or questions about the team itself, you should respond directly.\n- For all work requests, tasks, or questions requiring expertise, route to appropriate team members.\n</how_to_respond>\n\n<instructions>\nYou are a team of agents that can solve math problems and search the web for information. For math problems, use the math agent. For web search, use the web search agent. You do not have any prior factual knowledge so use the web search agent to get the information you need always.\n</instructions>\n\n<additional_information>\n- Use markdown to format your answers.\n</additional_information>",
|
|
77
|
+
"llm.input_messages.1.message.role": "user",
|
|
78
|
+
"llm.input_messages.1.message.content": "What is the 10 + 10 * 2?",
|
|
79
|
+
"llm.tools.0.tool.json_schema": "{\"type\": \"function\", \"function\": {\"name\": \"delegate_task_to_member\", \"description\": \"Use this function to delegate a task to the selected team member.\\nYou must provide a clear and concise description of the task the member should achieve AND the expected output.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"member_id\": {\"type\": \"string\", \"description\": \"(str) The ID of the member to delegate the task to. Use only the ID of the member, not the ID of the team followed by the ID of the member.\"}, \"task\": {\"type\": \"string\", \"description\": \"(str) A clear and concise description of the task the member should achieve.\"}}, \"required\": [\"member_id\", \"task\"], \"additionalProperties\": false}}}",
|
|
80
|
+
"llm.model_name": "gpt-4o-mini",
|
|
81
|
+
"llm.provider": "OpenAI",
|
|
82
|
+
"output.mime_type": "application/json",
|
|
83
|
+
"llm.output_messages.0.message.role": "assistant",
|
|
84
|
+
"llm.output_messages.0.message.tool_calls.0.tool_call.id": "call_zOP33MupFY43i9cXSwh0CBOy",
|
|
85
|
+
"llm.output_messages.0.message.tool_calls.0.tool_call.function.name": "delegate_task_to_member",
|
|
86
|
+
"llm.output_messages.0.message.tool_calls.0.tool_call.function.arguments": "\"{\\\"member_id\\\":\\\"math-agent\\\",\\\"task\\\":\\\"Calculate the result of the expression 10 + 10 * 2.\\\"}\"",
|
|
87
|
+
"output.value": "[{\"role\": \"assistant\", \"tool_calls\": [{\"id\": \"call_zOP33MupFY43i9cXSwh0CBOy\", \"function\": {\"arguments\": \"{\\\"member_id\\\":\\\"math-agent\\\",\\\"task\\\":\\\"Calculate the result of the expression 10 + 10 * 2.\\\"}\", \"name\": \"delegate_task_to_member\"}, \"type\": \"function\"}]}]",
|
|
88
|
+
"llm.token_count.prompt": 571,
|
|
89
|
+
"llm.token_count.completion": 36,
|
|
90
|
+
"openinference.span.kind": "LLM"
|
|
91
|
+
},
|
|
92
|
+
"events": [],
|
|
93
|
+
"links": [],
|
|
94
|
+
"resource": {
|
|
95
|
+
"attributes": {
|
|
96
|
+
"telemetry.sdk.language": "python",
|
|
97
|
+
"telemetry.sdk.name": "opentelemetry",
|
|
98
|
+
"telemetry.sdk.version": "1.38.0",
|
|
99
|
+
"service.name": "unknown_service"
|
|
100
|
+
},
|
|
101
|
+
"schema_url": ""
|
|
102
|
+
}
|
|
103
|
+
},
|
|
104
|
+
{
|
|
105
|
+
"name": "ChatCompletion",
|
|
106
|
+
"context": {
|
|
107
|
+
"trace_id": "0xc0fa7b53c66c2d5597ea26fd9ab8c8f4",
|
|
108
|
+
"span_id": "0x6839d2f893648b12",
|
|
109
|
+
"trace_state": "[]"
|
|
110
|
+
},
|
|
111
|
+
"kind": "SpanKind.INTERNAL",
|
|
112
|
+
"parent_id": "0x89471d478663b6e9",
|
|
113
|
+
"start_time": "2025-11-27T10:23:13.333770Z",
|
|
114
|
+
"end_time": "2025-11-27T10:23:14.548535Z",
|
|
115
|
+
"status": {
|
|
116
|
+
"status_code": "OK"
|
|
117
|
+
},
|
|
118
|
+
"attributes": {
|
|
119
|
+
"llm.provider": "openai",
|
|
120
|
+
"llm.system": "openai",
|
|
121
|
+
"input.value": "{\"messages\": [{\"role\": \"developer\", \"content\": \"This agent is used to solve math problems using the tools provided. You must use the tools for any kind of calculations.\\n<additional_information>\\n- Use markdown to format your answers.\\n</additional_information>\"}, {\"role\": \"user\", \"content\": \"What is the 10 + 10 * 2?\"}], \"model\": \"gpt-4o-mini\", \"tools\": [{\"type\": \"function\", \"function\": {\"name\": \"add\", \"description\": \"Add two numbers.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"a\": {\"type\": \"number\"}, \"b\": {\"type\": \"number\"}}, \"required\": [\"a\", \"b\"]}}}, {\"type\": \"function\", \"function\": {\"name\": \"multiply\", \"description\": \"Multiply two numbers.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"a\": {\"type\": \"number\"}, \"b\": {\"type\": \"number\"}}, \"required\": [\"a\", \"b\"]}}}]}",
|
|
122
|
+
"input.mime_type": "application/json",
|
|
123
|
+
"output.value": "{\"id\":\"chatcmpl-CgTRZn6tldlNuRhnrsTyVlpEdiFMt\",\"choices\":[{\"finish_reason\":\"tool_calls\",\"index\":0,\"logprobs\":null,\"message\":{\"content\":null,\"refusal\":null,\"role\":\"assistant\",\"annotations\":[],\"tool_calls\":[{\"id\":\"call_eMIweqyOUK42NaQjljlKuX1C\",\"function\":{\"arguments\":\"{\\\"a\\\": 10, \\\"b\\\": 10}\",\"name\":\"add\"},\"type\":\"function\"},{\"id\":\"call_Xs187G3GCCGQgehR6YHjU7tS\",\"function\":{\"arguments\":\"{\\\"a\\\": 10, \\\"b\\\": 2}\",\"name\":\"multiply\"},\"type\":\"function\"}]}}],\"created\":1764238993,\"model\":\"gpt-4o-mini-2024-07-18\",\"object\":\"chat.completion\",\"service_tier\":\"default\",\"system_fingerprint\":\"fp_560af6e559\",\"usage\":{\"completion_tokens\":50,\"prompt_tokens\":117,\"total_tokens\":167,\"completion_tokens_details\":{\"accepted_prediction_tokens\":0,\"audio_tokens\":0,\"reasoning_tokens\":0,\"rejected_prediction_tokens\":0},\"prompt_tokens_details\":{\"audio_tokens\":0,\"cached_tokens\":0}}}",
|
|
124
|
+
"output.mime_type": "application/json",
|
|
125
|
+
"llm.tools.0.tool.json_schema": "{\"type\": \"function\", \"function\": {\"name\": \"add\", \"description\": \"Add two numbers.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"a\": {\"type\": \"number\"}, \"b\": {\"type\": \"number\"}}, \"required\": [\"a\", \"b\"]}}}",
|
|
126
|
+
"llm.tools.1.tool.json_schema": "{\"type\": \"function\", \"function\": {\"name\": \"multiply\", \"description\": \"Multiply two numbers.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"a\": {\"type\": \"number\"}, \"b\": {\"type\": \"number\"}}, \"required\": [\"a\", \"b\"]}}}",
|
|
127
|
+
"llm.invocation_parameters": "{\"model\": \"gpt-4o-mini\"}",
|
|
128
|
+
"llm.input_messages.0.message.role": "developer",
|
|
129
|
+
"llm.input_messages.0.message.content": "This agent is used to solve math problems using the tools provided. You must use the tools for any kind of calculations.\n<additional_information>\n- Use markdown to format your answers.\n</additional_information>",
|
|
130
|
+
"llm.input_messages.1.message.role": "user",
|
|
131
|
+
"llm.input_messages.1.message.content": "What is the 10 + 10 * 2?",
|
|
132
|
+
"llm.model_name": "gpt-4o-mini-2024-07-18",
|
|
133
|
+
"llm.token_count.total": 167,
|
|
134
|
+
"llm.token_count.prompt": 117,
|
|
135
|
+
"llm.token_count.completion": 50,
|
|
136
|
+
"llm.token_count.prompt_details.cache_read": 0,
|
|
137
|
+
"llm.token_count.prompt_details.audio": 0,
|
|
138
|
+
"llm.token_count.completion_details.reasoning": 0,
|
|
139
|
+
"llm.token_count.completion_details.audio": 0,
|
|
140
|
+
"llm.output_messages.0.message.role": "assistant",
|
|
141
|
+
"llm.output_messages.0.message.tool_calls.0.tool_call.id": "call_eMIweqyOUK42NaQjljlKuX1C",
|
|
142
|
+
"llm.output_messages.0.message.tool_calls.0.tool_call.function.name": "add",
|
|
143
|
+
"llm.output_messages.0.message.tool_calls.0.tool_call.function.arguments": "{\"a\": 10, \"b\": 10}",
|
|
144
|
+
"llm.output_messages.0.message.tool_calls.1.tool_call.id": "call_Xs187G3GCCGQgehR6YHjU7tS",
|
|
145
|
+
"llm.output_messages.0.message.tool_calls.1.tool_call.function.name": "multiply",
|
|
146
|
+
"llm.output_messages.0.message.tool_calls.1.tool_call.function.arguments": "{\"a\": 10, \"b\": 2}",
|
|
147
|
+
"openinference.span.kind": "LLM"
|
|
148
|
+
},
|
|
149
|
+
"events": [],
|
|
150
|
+
"links": [],
|
|
151
|
+
"resource": {
|
|
152
|
+
"attributes": {
|
|
153
|
+
"telemetry.sdk.language": "python",
|
|
154
|
+
"telemetry.sdk.name": "opentelemetry",
|
|
155
|
+
"telemetry.sdk.version": "1.38.0",
|
|
156
|
+
"service.name": "unknown_service"
|
|
157
|
+
},
|
|
158
|
+
"schema_url": ""
|
|
159
|
+
}
|
|
160
|
+
},
|
|
161
|
+
{
|
|
162
|
+
"name": "OpenAIChat.invoke",
|
|
163
|
+
"context": {
|
|
164
|
+
"trace_id": "0xc0fa7b53c66c2d5597ea26fd9ab8c8f4",
|
|
165
|
+
"span_id": "0x89471d478663b6e9",
|
|
166
|
+
"trace_state": "[]"
|
|
167
|
+
},
|
|
168
|
+
"kind": "SpanKind.INTERNAL",
|
|
169
|
+
"parent_id": "0xac5593eeec3fce36",
|
|
170
|
+
"start_time": "2025-11-27T10:23:13.333203Z",
|
|
171
|
+
"end_time": "2025-11-27T10:23:14.550729Z",
|
|
172
|
+
"status": {
|
|
173
|
+
"status_code": "OK"
|
|
174
|
+
},
|
|
175
|
+
"attributes": {
|
|
176
|
+
"input.mime_type": "application/json",
|
|
177
|
+
"input.value": "{\"messages\": [{\"id\": \"d3ce104a-961c-4afd-88ef-aa902d688431\", \"content\": \"This agent is used to solve math problems using the tools provided. You must use the tools for any kind of calculations.\\n<additional_information>\\n- Use markdown to format your answers.\\n</additional_information>\", \"from_history\": false, \"stop_after_tool_call\": false, \"role\": \"system\", \"created_at\": 1764238993}, {\"id\": \"574b3818-1cdf-4eeb-a021-5435e38da869\", \"content\": \"What is the 10 + 10 * 2?\", \"from_history\": false, \"stop_after_tool_call\": false, \"role\": \"user\", \"created_at\": 1764238993}]}",
|
|
178
|
+
"llm.input_messages.0.message.role": "system",
|
|
179
|
+
"llm.input_messages.0.message.content": "This agent is used to solve math problems using the tools provided. You must use the tools for any kind of calculations.\n<additional_information>\n- Use markdown to format your answers.\n</additional_information>",
|
|
180
|
+
"llm.input_messages.1.message.role": "user",
|
|
181
|
+
"llm.input_messages.1.message.content": "What is the 10 + 10 * 2?",
|
|
182
|
+
"llm.tools.0.tool.json_schema": "{\"type\": \"function\", \"function\": {\"name\": \"add\", \"description\": \"Add two numbers.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"a\": {\"type\": \"number\"}, \"b\": {\"type\": \"number\"}}, \"required\": [\"a\", \"b\"]}}}",
|
|
183
|
+
"llm.tools.1.tool.json_schema": "{\"type\": \"function\", \"function\": {\"name\": \"multiply\", \"description\": \"Multiply two numbers.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"a\": {\"type\": \"number\"}, \"b\": {\"type\": \"number\"}}, \"required\": [\"a\", \"b\"]}}}",
|
|
184
|
+
"llm.model_name": "gpt-4o-mini",
|
|
185
|
+
"llm.provider": "OpenAI",
|
|
186
|
+
"output.mime_type": "application/json",
|
|
187
|
+
"llm.output_messages.0.message.role": "assistant",
|
|
188
|
+
"llm.output_messages.0.message.tool_calls.0.tool_call.id": "call_eMIweqyOUK42NaQjljlKuX1C",
|
|
189
|
+
"llm.output_messages.0.message.tool_calls.0.tool_call.function.name": "add",
|
|
190
|
+
"llm.output_messages.0.message.tool_calls.0.tool_call.function.arguments": "\"{\\\"a\\\": 10, \\\"b\\\": 10}\"",
|
|
191
|
+
"llm.output_messages.0.message.tool_calls.1.tool_call.id": "call_Xs187G3GCCGQgehR6YHjU7tS",
|
|
192
|
+
"llm.output_messages.0.message.tool_calls.1.tool_call.function.name": "multiply",
|
|
193
|
+
"llm.output_messages.0.message.tool_calls.1.tool_call.function.arguments": "\"{\\\"a\\\": 10, \\\"b\\\": 2}\"",
|
|
194
|
+
"output.value": "[{\"role\": \"assistant\", \"tool_calls\": [{\"id\": \"call_eMIweqyOUK42NaQjljlKuX1C\", \"function\": {\"arguments\": \"{\\\"a\\\": 10, \\\"b\\\": 10}\", \"name\": \"add\"}, \"type\": \"function\"}, {\"id\": \"call_Xs187G3GCCGQgehR6YHjU7tS\", \"function\": {\"arguments\": \"{\\\"a\\\": 10, \\\"b\\\": 2}\", \"name\": \"multiply\"}, \"type\": \"function\"}]}]",
|
|
195
|
+
"llm.token_count.prompt": 117,
|
|
196
|
+
"llm.token_count.completion": 50,
|
|
197
|
+
"openinference.span.kind": "LLM"
|
|
198
|
+
},
|
|
199
|
+
"events": [],
|
|
200
|
+
"links": [],
|
|
201
|
+
"resource": {
|
|
202
|
+
"attributes": {
|
|
203
|
+
"telemetry.sdk.language": "python",
|
|
204
|
+
"telemetry.sdk.name": "opentelemetry",
|
|
205
|
+
"telemetry.sdk.version": "1.38.0",
|
|
206
|
+
"service.name": "unknown_service"
|
|
207
|
+
},
|
|
208
|
+
"schema_url": ""
|
|
209
|
+
}
|
|
210
|
+
},
|
|
211
|
+
{
|
|
212
|
+
"name": "add",
|
|
213
|
+
"context": {
|
|
214
|
+
"trace_id": "0xc0fa7b53c66c2d5597ea26fd9ab8c8f4",
|
|
215
|
+
"span_id": "0x06d31a0e0c41a319",
|
|
216
|
+
"trace_state": "[]"
|
|
217
|
+
},
|
|
218
|
+
"kind": "SpanKind.INTERNAL",
|
|
219
|
+
"parent_id": "0xac5593eeec3fce36",
|
|
220
|
+
"start_time": "2025-11-27T10:23:14.552280Z",
|
|
221
|
+
"end_time": "2025-11-27T10:23:14.552621Z",
|
|
222
|
+
"status": {
|
|
223
|
+
"status_code": "OK"
|
|
224
|
+
},
|
|
225
|
+
"attributes": {
|
|
226
|
+
"input.mime_type": "application/json",
|
|
227
|
+
"input.value": "{\"a\": 10, \"b\": 10}",
|
|
228
|
+
"tool.name": "add",
|
|
229
|
+
"tool.description": "Add two numbers.",
|
|
230
|
+
"tool.parameters": "{\"a\": 10, \"b\": 10}",
|
|
231
|
+
"output.value": "20.0",
|
|
232
|
+
"output.mime_type": "text/plain",
|
|
233
|
+
"openinference.span.kind": "TOOL"
|
|
234
|
+
},
|
|
235
|
+
"events": [],
|
|
236
|
+
"links": [],
|
|
237
|
+
"resource": {
|
|
238
|
+
"attributes": {
|
|
239
|
+
"telemetry.sdk.language": "python",
|
|
240
|
+
"telemetry.sdk.name": "opentelemetry",
|
|
241
|
+
"telemetry.sdk.version": "1.38.0",
|
|
242
|
+
"service.name": "unknown_service"
|
|
243
|
+
},
|
|
244
|
+
"schema_url": ""
|
|
245
|
+
}
|
|
246
|
+
},
|
|
247
|
+
{
|
|
248
|
+
"name": "multiply",
|
|
249
|
+
"context": {
|
|
250
|
+
"trace_id": "0xc0fa7b53c66c2d5597ea26fd9ab8c8f4",
|
|
251
|
+
"span_id": "0xdf84fcb37e36d9ee",
|
|
252
|
+
"trace_state": "[]"
|
|
253
|
+
},
|
|
254
|
+
"kind": "SpanKind.INTERNAL",
|
|
255
|
+
"parent_id": "0xac5593eeec3fce36",
|
|
256
|
+
"start_time": "2025-11-27T10:23:14.553752Z",
|
|
257
|
+
"end_time": "2025-11-27T10:23:14.553954Z",
|
|
258
|
+
"status": {
|
|
259
|
+
"status_code": "OK"
|
|
260
|
+
},
|
|
261
|
+
"attributes": {
|
|
262
|
+
"input.mime_type": "application/json",
|
|
263
|
+
"input.value": "{\"a\": 10, \"b\": 2}",
|
|
264
|
+
"tool.name": "multiply",
|
|
265
|
+
"tool.description": "Multiply two numbers.",
|
|
266
|
+
"tool.parameters": "{\"a\": 10, \"b\": 2}",
|
|
267
|
+
"output.value": "20.0",
|
|
268
|
+
"output.mime_type": "text/plain",
|
|
269
|
+
"openinference.span.kind": "TOOL"
|
|
270
|
+
},
|
|
271
|
+
"events": [],
|
|
272
|
+
"links": [],
|
|
273
|
+
"resource": {
|
|
274
|
+
"attributes": {
|
|
275
|
+
"telemetry.sdk.language": "python",
|
|
276
|
+
"telemetry.sdk.name": "opentelemetry",
|
|
277
|
+
"telemetry.sdk.version": "1.38.0",
|
|
278
|
+
"service.name": "unknown_service"
|
|
279
|
+
},
|
|
280
|
+
"schema_url": ""
|
|
281
|
+
}
|
|
282
|
+
},
|
|
283
|
+
{
|
|
284
|
+
"name": "ChatCompletion",
|
|
285
|
+
"context": {
|
|
286
|
+
"trace_id": "0xc0fa7b53c66c2d5597ea26fd9ab8c8f4",
|
|
287
|
+
"span_id": "0x3330ecd9469aac52",
|
|
288
|
+
"trace_state": "[]"
|
|
289
|
+
},
|
|
290
|
+
"kind": "SpanKind.INTERNAL",
|
|
291
|
+
"parent_id": "0xccc6f7804c195561",
|
|
292
|
+
"start_time": "2025-11-27T10:23:14.557016Z",
|
|
293
|
+
"end_time": "2025-11-27T10:23:16.405955Z",
|
|
294
|
+
"status": {
|
|
295
|
+
"status_code": "OK"
|
|
296
|
+
},
|
|
297
|
+
"attributes": {
|
|
298
|
+
"llm.provider": "openai",
|
|
299
|
+
"llm.system": "openai",
|
|
300
|
+
"input.value": "{\"messages\": [{\"role\": \"developer\", \"content\": \"This agent is used to solve math problems using the tools provided. You must use the tools for any kind of calculations.\\n<additional_information>\\n- Use markdown to format your answers.\\n</additional_information>\"}, {\"role\": \"user\", \"content\": \"What is the 10 + 10 * 2?\"}, {\"role\": \"assistant\", \"tool_calls\": [{\"id\": \"call_eMIweqyOUK42NaQjljlKuX1C\", \"function\": {\"arguments\": \"{\\\"a\\\": 10, \\\"b\\\": 10}\", \"name\": \"add\"}, \"type\": \"function\"}, {\"id\": \"call_Xs187G3GCCGQgehR6YHjU7tS\", \"function\": {\"arguments\": \"{\\\"a\\\": 10, \\\"b\\\": 2}\", \"name\": \"multiply\"}, \"type\": \"function\"}], \"content\": \"\"}, {\"role\": \"tool\", \"content\": \"20.0\", \"tool_call_id\": \"call_eMIweqyOUK42NaQjljlKuX1C\"}, {\"role\": \"tool\", \"content\": \"20.0\", \"tool_call_id\": \"call_Xs187G3GCCGQgehR6YHjU7tS\"}], \"model\": \"gpt-4o-mini\", \"tools\": [{\"type\": \"function\", \"function\": {\"name\": \"add\", \"description\": \"Add two numbers.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"a\": {\"type\": \"number\"}, \"b\": {\"type\": \"number\"}}, \"required\": [\"a\", \"b\"]}}}, {\"type\": \"function\", \"function\": {\"name\": \"multiply\", \"description\": \"Multiply two numbers.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"a\": {\"type\": \"number\"}, \"b\": {\"type\": \"number\"}}, \"required\": [\"a\", \"b\"]}}}]}",
|
|
301
|
+
"input.mime_type": "application/json",
|
|
302
|
+
"output.value": "{\"id\":\"chatcmpl-CgTRaUNQYy5hlbKxgaPd9L5iqqnNv\",\"choices\":[{\"finish_reason\":\"stop\",\"index\":0,\"logprobs\":null,\"message\":{\"content\":\"To solve \\\\( 10 + 10 \\\\times 2 \\\\), we first calculate the multiplication:\\n\\n- \\\\( 10 \\\\times 2 = 20 \\\\)\\n\\nThen we add the result to 10:\\n\\n- \\\\( 10 + 20 = 30 \\\\)\\n\\nSo, the result of \\\\( 10 + 10 \\\\times 2 \\\\) is **30**.\",\"refusal\":null,\"role\":\"assistant\",\"annotations\":[]}}],\"created\":1764238994,\"model\":\"gpt-4o-mini-2024-07-18\",\"object\":\"chat.completion\",\"service_tier\":\"default\",\"system_fingerprint\":\"fp_560af6e559\",\"usage\":{\"completion_tokens\":77,\"prompt_tokens\":187,\"total_tokens\":264,\"completion_tokens_details\":{\"accepted_prediction_tokens\":0,\"audio_tokens\":0,\"reasoning_tokens\":0,\"rejected_prediction_tokens\":0},\"prompt_tokens_details\":{\"audio_tokens\":0,\"cached_tokens\":0}}}",
|
|
303
|
+
"output.mime_type": "application/json",
|
|
304
|
+
"llm.tools.0.tool.json_schema": "{\"type\": \"function\", \"function\": {\"name\": \"add\", \"description\": \"Add two numbers.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"a\": {\"type\": \"number\"}, \"b\": {\"type\": \"number\"}}, \"required\": [\"a\", \"b\"]}}}",
|
|
305
|
+
"llm.tools.1.tool.json_schema": "{\"type\": \"function\", \"function\": {\"name\": \"multiply\", \"description\": \"Multiply two numbers.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"a\": {\"type\": \"number\"}, \"b\": {\"type\": \"number\"}}, \"required\": [\"a\", \"b\"]}}}",
|
|
306
|
+
"llm.invocation_parameters": "{\"model\": \"gpt-4o-mini\"}",
|
|
307
|
+
"llm.input_messages.0.message.role": "developer",
|
|
308
|
+
"llm.input_messages.0.message.content": "This agent is used to solve math problems using the tools provided. You must use the tools for any kind of calculations.\n<additional_information>\n- Use markdown to format your answers.\n</additional_information>",
|
|
309
|
+
"llm.input_messages.1.message.role": "user",
|
|
310
|
+
"llm.input_messages.1.message.content": "What is the 10 + 10 * 2?",
|
|
311
|
+
"llm.input_messages.2.message.role": "assistant",
|
|
312
|
+
"llm.input_messages.2.message.tool_calls.0.tool_call.id": "call_eMIweqyOUK42NaQjljlKuX1C",
|
|
313
|
+
"llm.input_messages.2.message.tool_calls.0.tool_call.function.name": "add",
|
|
314
|
+
"llm.input_messages.2.message.tool_calls.0.tool_call.function.arguments": "{\"a\": 10, \"b\": 10}",
|
|
315
|
+
"llm.input_messages.2.message.tool_calls.1.tool_call.id": "call_Xs187G3GCCGQgehR6YHjU7tS",
|
|
316
|
+
"llm.input_messages.2.message.tool_calls.1.tool_call.function.name": "multiply",
|
|
317
|
+
"llm.input_messages.2.message.tool_calls.1.tool_call.function.arguments": "{\"a\": 10, \"b\": 2}",
|
|
318
|
+
"llm.input_messages.3.message.role": "tool",
|
|
319
|
+
"llm.input_messages.3.message.tool_call_id": "call_eMIweqyOUK42NaQjljlKuX1C",
|
|
320
|
+
"llm.input_messages.3.message.content": "20.0",
|
|
321
|
+
"llm.input_messages.4.message.role": "tool",
|
|
322
|
+
"llm.input_messages.4.message.tool_call_id": "call_Xs187G3GCCGQgehR6YHjU7tS",
|
|
323
|
+
"llm.input_messages.4.message.content": "20.0",
|
|
324
|
+
"llm.model_name": "gpt-4o-mini-2024-07-18",
|
|
325
|
+
"llm.token_count.total": 264,
|
|
326
|
+
"llm.token_count.prompt": 187,
|
|
327
|
+
"llm.token_count.completion": 77,
|
|
328
|
+
"llm.token_count.prompt_details.cache_read": 0,
|
|
329
|
+
"llm.token_count.prompt_details.audio": 0,
|
|
330
|
+
"llm.token_count.completion_details.reasoning": 0,
|
|
331
|
+
"llm.token_count.completion_details.audio": 0,
|
|
332
|
+
"llm.output_messages.0.message.role": "assistant",
|
|
333
|
+
"llm.output_messages.0.message.content": "To solve \\( 10 + 10 \\times 2 \\), we first calculate the multiplication:\n\n- \\( 10 \\times 2 = 20 \\)\n\nThen we add the result to 10:\n\n- \\( 10 + 20 = 30 \\)\n\nSo, the result of \\( 10 + 10 \\times 2 \\) is **30**.",
|
|
334
|
+
"openinference.span.kind": "LLM"
|
|
335
|
+
},
|
|
336
|
+
"events": [],
|
|
337
|
+
"links": [],
|
|
338
|
+
"resource": {
|
|
339
|
+
"attributes": {
|
|
340
|
+
"telemetry.sdk.language": "python",
|
|
341
|
+
"telemetry.sdk.name": "opentelemetry",
|
|
342
|
+
"telemetry.sdk.version": "1.38.0",
|
|
343
|
+
"service.name": "unknown_service"
|
|
344
|
+
},
|
|
345
|
+
"schema_url": ""
|
|
346
|
+
}
|
|
347
|
+
},
|
|
348
|
+
{
|
|
349
|
+
"name": "OpenAIChat.invoke",
|
|
350
|
+
"context": {
|
|
351
|
+
"trace_id": "0xc0fa7b53c66c2d5597ea26fd9ab8c8f4",
|
|
352
|
+
"span_id": "0xccc6f7804c195561",
|
|
353
|
+
"trace_state": "[]"
|
|
354
|
+
},
|
|
355
|
+
"kind": "SpanKind.INTERNAL",
|
|
356
|
+
"parent_id": "0xac5593eeec3fce36",
|
|
357
|
+
"start_time": "2025-11-27T10:23:14.555338Z",
|
|
358
|
+
"end_time": "2025-11-27T10:23:16.408240Z",
|
|
359
|
+
"status": {
|
|
360
|
+
"status_code": "OK"
|
|
361
|
+
},
|
|
362
|
+
"attributes": {
|
|
363
|
+
"input.mime_type": "application/json",
|
|
364
|
+
"input.value": "{\"messages\": [{\"id\": \"d3ce104a-961c-4afd-88ef-aa902d688431\", \"content\": \"This agent is used to solve math problems using the tools provided. You must use the tools for any kind of calculations.\\n<additional_information>\\n- Use markdown to format your answers.\\n</additional_information>\", \"from_history\": false, \"stop_after_tool_call\": false, \"role\": \"system\", \"created_at\": 1764238993}, {\"id\": \"574b3818-1cdf-4eeb-a021-5435e38da869\", \"content\": \"What is the 10 + 10 * 2?\", \"from_history\": false, \"stop_after_tool_call\": false, \"role\": \"user\", \"created_at\": 1764238993}, {\"id\": \"c2ae02b1-3069-4fea-be28-c38646745937\", \"from_history\": false, \"stop_after_tool_call\": false, \"role\": \"assistant\", \"tool_calls\": [{\"id\": \"call_eMIweqyOUK42NaQjljlKuX1C\", \"function\": {\"arguments\": \"{\\\"a\\\": 10, \\\"b\\\": 10}\", \"name\": \"add\"}, \"type\": \"function\"}, {\"id\": \"call_Xs187G3GCCGQgehR6YHjU7tS\", \"function\": {\"arguments\": \"{\\\"a\\\": 10, \\\"b\\\": 2}\", \"name\": \"multiply\"}, \"type\": \"function\"}], \"metrics\": {\"input_tokens\": 117, \"output_tokens\": 50, \"total_tokens\": 167, \"duration\": 1.2171889580786228}, \"created_at\": 1764238993}, {\"id\": \"550c48f3-e3cf-4660-aa91-26040d6b9ae1\", \"content\": \"20.0\", \"from_history\": false, \"stop_after_tool_call\": false, \"role\": \"tool\", \"tool_call_id\": \"call_eMIweqyOUK42NaQjljlKuX1C\", \"tool_name\": \"add\", \"tool_args\": {\"a\": 10, \"b\": 10}, \"tool_call_error\": false, \"metrics\": {\"duration\": 0.0014612080994993448}, \"created_at\": 1764238994}, {\"id\": \"591f6e6d-6e47-48ed-9a11-d49fc6cf7093\", \"content\": \"20.0\", \"from_history\": false, \"stop_after_tool_call\": false, \"role\": \"tool\", \"tool_call_id\": \"call_Xs187G3GCCGQgehR6YHjU7tS\", \"tool_name\": \"multiply\", \"tool_args\": {\"a\": 10, \"b\": 2}, \"tool_call_error\": false, \"metrics\": {\"duration\": 0.000962583115324378}, \"created_at\": 1764238994}]}",
|
|
365
|
+
"llm.input_messages.0.message.role": "system",
|
|
366
|
+
"llm.input_messages.0.message.content": "This agent is used to solve math problems using the tools provided. You must use the tools for any kind of calculations.\n<additional_information>\n- Use markdown to format your answers.\n</additional_information>",
|
|
367
|
+
"llm.input_messages.1.message.role": "user",
|
|
368
|
+
"llm.input_messages.1.message.content": "What is the 10 + 10 * 2?",
|
|
369
|
+
"llm.input_messages.2.message.role": "assistant",
|
|
370
|
+
"llm.input_messages.2.message.tool_calls.0.tool_call.id": "call_eMIweqyOUK42NaQjljlKuX1C",
|
|
371
|
+
"llm.input_messages.2.message.tool_calls.0.tool_call.function.name": "add",
|
|
372
|
+
"llm.input_messages.2.message.tool_calls.0.tool_call.function.arguments": "\"{\\\"a\\\": 10, \\\"b\\\": 10}\"",
|
|
373
|
+
"llm.input_messages.2.message.tool_calls.1.tool_call.id": "call_Xs187G3GCCGQgehR6YHjU7tS",
|
|
374
|
+
"llm.input_messages.2.message.tool_calls.1.tool_call.function.name": "multiply",
|
|
375
|
+
"llm.input_messages.2.message.tool_calls.1.tool_call.function.arguments": "\"{\\\"a\\\": 10, \\\"b\\\": 2}\"",
|
|
376
|
+
"llm.input_messages.3.message.role": "tool",
|
|
377
|
+
"llm.input_messages.3.message.content": "20.0",
|
|
378
|
+
"llm.input_messages.4.message.role": "tool",
|
|
379
|
+
"llm.input_messages.4.message.content": "20.0",
|
|
380
|
+
"llm.tools.0.tool.json_schema": "{\"type\": \"function\", \"function\": {\"name\": \"add\", \"description\": \"Add two numbers.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"a\": {\"type\": \"number\"}, \"b\": {\"type\": \"number\"}}, \"required\": [\"a\", \"b\"]}}}",
|
|
381
|
+
"llm.tools.1.tool.json_schema": "{\"type\": \"function\", \"function\": {\"name\": \"multiply\", \"description\": \"Multiply two numbers.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"a\": {\"type\": \"number\"}, \"b\": {\"type\": \"number\"}}, \"required\": [\"a\", \"b\"]}}}",
|
|
382
|
+
"llm.model_name": "gpt-4o-mini",
|
|
383
|
+
"llm.provider": "OpenAI",
|
|
384
|
+
"output.mime_type": "application/json",
|
|
385
|
+
"llm.output_messages.0.message.role": "assistant",
|
|
386
|
+
"llm.output_messages.0.message.content": "To solve \\( 10 + 10 \\times 2 \\), we first calculate the multiplication:\n\n- \\( 10 \\times 2 = 20 \\)\n\nThen we add the result to 10:\n\n- \\( 10 + 20 = 30 \\)\n\nSo, the result of \\( 10 + 10 \\times 2 \\) is **30**.",
|
|
387
|
+
"output.value": "[{\"role\": \"assistant\", \"content\": \"To solve \\\\( 10 + 10 \\\\times 2 \\\\), we first calculate the multiplication:\\n\\n- \\\\( 10 \\\\times 2 = 20 \\\\)\\n\\nThen we add the result to 10:\\n\\n- \\\\( 10 + 20 = 30 \\\\)\\n\\nSo, the result of \\\\( 10 + 10 \\\\times 2 \\\\) is **30**.\"}]",
|
|
388
|
+
"llm.token_count.prompt": 187,
|
|
389
|
+
"llm.token_count.completion": 77,
|
|
390
|
+
"openinference.span.kind": "LLM"
|
|
391
|
+
},
|
|
392
|
+
"events": [],
|
|
393
|
+
"links": [],
|
|
394
|
+
"resource": {
|
|
395
|
+
"attributes": {
|
|
396
|
+
"telemetry.sdk.language": "python",
|
|
397
|
+
"telemetry.sdk.name": "opentelemetry",
|
|
398
|
+
"telemetry.sdk.version": "1.38.0",
|
|
399
|
+
"service.name": "unknown_service"
|
|
400
|
+
},
|
|
401
|
+
"schema_url": ""
|
|
402
|
+
}
|
|
403
|
+
},
|
|
404
|
+
{
|
|
405
|
+
"name": "math_agent.run",
|
|
406
|
+
"context": {
|
|
407
|
+
"trace_id": "0xc0fa7b53c66c2d5597ea26fd9ab8c8f4",
|
|
408
|
+
"span_id": "0xac5593eeec3fce36",
|
|
409
|
+
"trace_state": "[]"
|
|
410
|
+
},
|
|
411
|
+
"kind": "SpanKind.INTERNAL",
|
|
412
|
+
"parent_id": "0x664b8602df509578",
|
|
413
|
+
"start_time": "2025-11-27T10:23:13.329326Z",
|
|
414
|
+
"end_time": "2025-11-27T10:23:17.332799Z",
|
|
415
|
+
"status": {
|
|
416
|
+
"status_code": "OK"
|
|
417
|
+
},
|
|
418
|
+
"attributes": {
|
|
419
|
+
"graph.node.id": "5d520c902a2a2629",
|
|
420
|
+
"input.value": "What is the 10 + 10 * 2?",
|
|
421
|
+
"graph.node.name": "math agent",
|
|
422
|
+
"agno.agent.id": "math-agent",
|
|
423
|
+
"graph.node.parent_id": "e38ca594d6ee9207",
|
|
424
|
+
"agno.agent": "math agent",
|
|
425
|
+
"agno.tools": [
|
|
426
|
+
"add",
|
|
427
|
+
"multiply"
|
|
428
|
+
],
|
|
429
|
+
"session.id": "63aa2162-8988-487d-89e4-c1d00e83b5e2",
|
|
430
|
+
"output.value": "To solve \\( 10 + 10 \\times 2 \\), we first calculate the multiplication:\n\n- \\( 10 \\times 2 = 20 \\)\n\nThen we add the result to 10:\n\n- \\( 10 + 20 = 30 \\)\n\nSo, the result of \\( 10 + 10 \\times 2 \\) is **30**.",
|
|
431
|
+
"output.mime_type": "application/json",
|
|
432
|
+
"agno.run.id": "1c54484b-9930-4423-9011-fd66bb89904f",
|
|
433
|
+
"openinference.span.kind": "AGENT"
|
|
434
|
+
},
|
|
435
|
+
"events": [],
|
|
436
|
+
"links": [],
|
|
437
|
+
"resource": {
|
|
438
|
+
"attributes": {
|
|
439
|
+
"telemetry.sdk.language": "python",
|
|
440
|
+
"telemetry.sdk.name": "opentelemetry",
|
|
441
|
+
"telemetry.sdk.version": "1.38.0",
|
|
442
|
+
"service.name": "unknown_service"
|
|
443
|
+
},
|
|
444
|
+
"schema_url": ""
|
|
445
|
+
}
|
|
446
|
+
},
|
|
447
|
+
{
|
|
448
|
+
"name": "delegate_task_to_member",
|
|
449
|
+
"context": {
|
|
450
|
+
"trace_id": "0xc0fa7b53c66c2d5597ea26fd9ab8c8f4",
|
|
451
|
+
"span_id": "0x408d34659c00d73c",
|
|
452
|
+
"trace_state": "[]"
|
|
453
|
+
},
|
|
454
|
+
"kind": "SpanKind.INTERNAL",
|
|
455
|
+
"parent_id": "0x664b8602df509578",
|
|
456
|
+
"start_time": "2025-11-27T10:23:13.328198Z",
|
|
457
|
+
"end_time": "2025-11-27T10:23:17.333474Z",
|
|
458
|
+
"status": {
|
|
459
|
+
"status_code": "OK"
|
|
460
|
+
},
|
|
461
|
+
"attributes": {
|
|
462
|
+
"input.mime_type": "application/json",
|
|
463
|
+
"input.value": "{\"member_id\": \"math-agent\", \"task\": \"Calculate the result of the expression 10 + 10 * 2.\"}",
|
|
464
|
+
"tool.name": "delegate_task_to_member",
|
|
465
|
+
"tool.description": "Use this function to delegate a task to the selected team member.\nYou must provide a clear and concise description of the task the member should achieve AND the expected output.",
|
|
466
|
+
"tool.parameters": "{\"member_id\": \"math-agent\", \"task\": \"Calculate the result of the expression 10 + 10 * 2.\"}",
|
|
467
|
+
"output.value": "To solve \\( 10 + 10 \\times 2 \\), we first calculate the multiplication:\n\n- \\( 10 \\times 2 = 20 \\)\n\nThen we add the result to 10:\n\n- \\( 10 + 20 = 30 \\)\n\nSo, the result of \\( 10 + 10 \\times 2 \\) is **30**.",
|
|
468
|
+
"output.mime_type": "text/plain",
|
|
469
|
+
"openinference.span.kind": "TOOL"
|
|
470
|
+
},
|
|
471
|
+
"events": [],
|
|
472
|
+
"links": [],
|
|
473
|
+
"resource": {
|
|
474
|
+
"attributes": {
|
|
475
|
+
"telemetry.sdk.language": "python",
|
|
476
|
+
"telemetry.sdk.name": "opentelemetry",
|
|
477
|
+
"telemetry.sdk.version": "1.38.0",
|
|
478
|
+
"service.name": "unknown_service"
|
|
479
|
+
},
|
|
480
|
+
"schema_url": ""
|
|
481
|
+
}
|
|
482
|
+
},
|
|
483
|
+
{
|
|
484
|
+
"name": "ChatCompletion",
|
|
485
|
+
"context": {
|
|
486
|
+
"trace_id": "0xc0fa7b53c66c2d5597ea26fd9ab8c8f4",
|
|
487
|
+
"span_id": "0x2f088d3b5829af04",
|
|
488
|
+
"trace_state": "[]"
|
|
489
|
+
},
|
|
490
|
+
"kind": "SpanKind.INTERNAL",
|
|
491
|
+
"parent_id": "0xbc7ad18995804a46",
|
|
492
|
+
"start_time": "2025-11-27T10:23:17.335229Z",
|
|
493
|
+
"end_time": "2025-11-27T10:23:18.524540Z",
|
|
494
|
+
"status": {
|
|
495
|
+
"status_code": "OK"
|
|
496
|
+
},
|
|
497
|
+
"attributes": {
|
|
498
|
+
"llm.provider": "openai",
|
|
499
|
+
"llm.system": "openai",
|
|
500
|
+
"input.value": "{\"messages\": [{\"role\": \"developer\", \"content\": \"You are the leader of a team and sub-teams of AI Agents.\\nYour task is to coordinate the team to complete the user's request.\\n\\nHere are the members in your team:\\n<team_members>\\n - Agent 1:\\n - ID: math-agent\\n - Name: math agent\\n - Agent 2:\\n - ID: web-search-agent\\n - Name: web search agent\\n</team_members>\\n\\n<how_to_respond>\\n- Your role is to delegate tasks to members in your team with the highest likelihood of completing the user's request.\\n- Carefully analyze the tools available to the members and their roles before delegating tasks.\\n- You cannot use a member tool directly. You can only delegate tasks to members.\\n- When you delegate a task to another member, make sure to include:\\n - member_id (str): The ID of the member to delegate the task to. Use only the ID of the member, not the ID of the team followed by the ID of the member.\\n - task (str): A clear description of the task. Determine the best way to describe the task to the member.\\n- You can delegate tasks to multiple members at once.\\n- You must always analyze the responses from members before responding to the user.\\n- After analyzing the responses from the members, if you feel the task has been completed, you can stop and respond to the user.\\n- If you are NOT satisfied with the responses from the members, you should re-assign the task to a different member.\\n- For simple greetings, thanks, or questions about the team itself, you should respond directly.\\n- For all work requests, tasks, or questions requiring expertise, route to appropriate team members.\\n</how_to_respond>\\n\\n<instructions>\\nYou are a team of agents that can solve math problems and search the web for information. For math problems, use the math agent. For web search, use the web search agent. You do not have any prior factual knowledge so use the web search agent to get the information you need always.\\n</instructions>\\n\\n<additional_information>\\n- Use markdown to format your answers.\\n</additional_information>\"}, {\"role\": \"user\", \"content\": \"What is the 10 + 10 * 2?\"}, {\"role\": \"assistant\", \"tool_calls\": [{\"id\": \"call_zOP33MupFY43i9cXSwh0CBOy\", \"function\": {\"arguments\": \"{\\\"member_id\\\":\\\"math-agent\\\",\\\"task\\\":\\\"Calculate the result of the expression 10 + 10 * 2.\\\"}\", \"name\": \"delegate_task_to_member\"}, \"type\": \"function\"}], \"content\": \"\"}, {\"role\": \"tool\", \"content\": \"To solve \\\\( 10 + 10 \\\\times 2 \\\\), we first calculate the multiplication:\\n\\n- \\\\( 10 \\\\times 2 = 20 \\\\)\\n\\nThen we add the result to 10:\\n\\n- \\\\( 10 + 20 = 30 \\\\)\\n\\nSo, the result of \\\\( 10 + 10 \\\\times 2 \\\\) is **30**.\", \"tool_call_id\": \"call_zOP33MupFY43i9cXSwh0CBOy\"}], \"model\": \"gpt-4o-mini\", \"tools\": [{\"type\": \"function\", \"function\": {\"name\": \"delegate_task_to_member\", \"description\": \"Use this function to delegate a task to the selected team member.\\nYou must provide a clear and concise description of the task the member should achieve AND the expected output.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"member_id\": {\"type\": \"string\", \"description\": \"(str) The ID of the member to delegate the task to. Use only the ID of the member, not the ID of the team followed by the ID of the member.\"}, \"task\": {\"type\": \"string\", \"description\": \"(str) A clear and concise description of the task the member should achieve.\"}}, \"required\": [\"member_id\", \"task\"], \"additionalProperties\": false}}}]}",
|
|
501
|
+
"input.mime_type": "application/json",
|
|
502
|
+
"output.value": "{\"id\":\"chatcmpl-CgTRdcGmVqOpDc1zdERJ0bInU5br1\",\"choices\":[{\"finish_reason\":\"stop\",\"index\":0,\"logprobs\":null,\"message\":{\"content\":\"The result of the expression \\\\( 10 + 10 \\\\times 2 \\\\) is **30**.\",\"refusal\":null,\"role\":\"assistant\",\"annotations\":[]}}],\"created\":1764238997,\"model\":\"gpt-4o-mini-2024-07-18\",\"object\":\"chat.completion\",\"service_tier\":\"default\",\"system_fingerprint\":\"fp_560af6e559\",\"usage\":{\"completion_tokens\":23,\"prompt_tokens\":693,\"total_tokens\":716,\"completion_tokens_details\":{\"accepted_prediction_tokens\":0,\"audio_tokens\":0,\"reasoning_tokens\":0,\"rejected_prediction_tokens\":0},\"prompt_tokens_details\":{\"audio_tokens\":0,\"cached_tokens\":0}}}",
|
|
503
|
+
"output.mime_type": "application/json",
|
|
504
|
+
"llm.tools.0.tool.json_schema": "{\"type\": \"function\", \"function\": {\"name\": \"delegate_task_to_member\", \"description\": \"Use this function to delegate a task to the selected team member.\\nYou must provide a clear and concise description of the task the member should achieve AND the expected output.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"member_id\": {\"type\": \"string\", \"description\": \"(str) The ID of the member to delegate the task to. Use only the ID of the member, not the ID of the team followed by the ID of the member.\"}, \"task\": {\"type\": \"string\", \"description\": \"(str) A clear and concise description of the task the member should achieve.\"}}, \"required\": [\"member_id\", \"task\"], \"additionalProperties\": false}}}",
|
|
505
|
+
"llm.invocation_parameters": "{\"model\": \"gpt-4o-mini\"}",
|
|
506
|
+
"llm.input_messages.0.message.role": "developer",
|
|
507
|
+
"llm.input_messages.0.message.content": "You are the leader of a team and sub-teams of AI Agents.\nYour task is to coordinate the team to complete the user's request.\n\nHere are the members in your team:\n<team_members>\n - Agent 1:\n - ID: math-agent\n - Name: math agent\n - Agent 2:\n - ID: web-search-agent\n - Name: web search agent\n</team_members>\n\n<how_to_respond>\n- Your role is to delegate tasks to members in your team with the highest likelihood of completing the user's request.\n- Carefully analyze the tools available to the members and their roles before delegating tasks.\n- You cannot use a member tool directly. You can only delegate tasks to members.\n- When you delegate a task to another member, make sure to include:\n - member_id (str): The ID of the member to delegate the task to. Use only the ID of the member, not the ID of the team followed by the ID of the member.\n - task (str): A clear description of the task. Determine the best way to describe the task to the member.\n- You can delegate tasks to multiple members at once.\n- You must always analyze the responses from members before responding to the user.\n- After analyzing the responses from the members, if you feel the task has been completed, you can stop and respond to the user.\n- If you are NOT satisfied with the responses from the members, you should re-assign the task to a different member.\n- For simple greetings, thanks, or questions about the team itself, you should respond directly.\n- For all work requests, tasks, or questions requiring expertise, route to appropriate team members.\n</how_to_respond>\n\n<instructions>\nYou are a team of agents that can solve math problems and search the web for information. For math problems, use the math agent. For web search, use the web search agent. You do not have any prior factual knowledge so use the web search agent to get the information you need always.\n</instructions>\n\n<additional_information>\n- Use markdown to format your answers.\n</additional_information>",
|
|
508
|
+
"llm.input_messages.1.message.role": "user",
|
|
509
|
+
"llm.input_messages.1.message.content": "What is the 10 + 10 * 2?",
|
|
510
|
+
"llm.input_messages.2.message.role": "assistant",
|
|
511
|
+
"llm.input_messages.2.message.tool_calls.0.tool_call.id": "call_zOP33MupFY43i9cXSwh0CBOy",
|
|
512
|
+
"llm.input_messages.2.message.tool_calls.0.tool_call.function.name": "delegate_task_to_member",
|
|
513
|
+
"llm.input_messages.2.message.tool_calls.0.tool_call.function.arguments": "{\"member_id\":\"math-agent\",\"task\":\"Calculate the result of the expression 10 + 10 * 2.\"}",
|
|
514
|
+
"llm.input_messages.3.message.role": "tool",
|
|
515
|
+
"llm.input_messages.3.message.tool_call_id": "call_zOP33MupFY43i9cXSwh0CBOy",
|
|
516
|
+
"llm.input_messages.3.message.content": "To solve \\( 10 + 10 \\times 2 \\), we first calculate the multiplication:\n\n- \\( 10 \\times 2 = 20 \\)\n\nThen we add the result to 10:\n\n- \\( 10 + 20 = 30 \\)\n\nSo, the result of \\( 10 + 10 \\times 2 \\) is **30**.",
|
|
517
|
+
"llm.model_name": "gpt-4o-mini-2024-07-18",
|
|
518
|
+
"llm.token_count.total": 716,
|
|
519
|
+
"llm.token_count.prompt": 693,
|
|
520
|
+
"llm.token_count.completion": 23,
|
|
521
|
+
"llm.token_count.prompt_details.cache_read": 0,
|
|
522
|
+
"llm.token_count.prompt_details.audio": 0,
|
|
523
|
+
"llm.token_count.completion_details.reasoning": 0,
|
|
524
|
+
"llm.token_count.completion_details.audio": 0,
|
|
525
|
+
"llm.output_messages.0.message.role": "assistant",
|
|
526
|
+
"llm.output_messages.0.message.content": "The result of the expression \\( 10 + 10 \\times 2 \\) is **30**.",
|
|
527
|
+
"openinference.span.kind": "LLM"
|
|
528
|
+
},
|
|
529
|
+
"events": [],
|
|
530
|
+
"links": [],
|
|
531
|
+
"resource": {
|
|
532
|
+
"attributes": {
|
|
533
|
+
"telemetry.sdk.language": "python",
|
|
534
|
+
"telemetry.sdk.name": "opentelemetry",
|
|
535
|
+
"telemetry.sdk.version": "1.38.0",
|
|
536
|
+
"service.name": "unknown_service"
|
|
537
|
+
},
|
|
538
|
+
"schema_url": ""
|
|
539
|
+
}
|
|
540
|
+
},
|
|
541
|
+
{
|
|
542
|
+
"name": "OpenAIChat.invoke",
|
|
543
|
+
"context": {
|
|
544
|
+
"trace_id": "0xc0fa7b53c66c2d5597ea26fd9ab8c8f4",
|
|
545
|
+
"span_id": "0xbc7ad18995804a46",
|
|
546
|
+
"trace_state": "[]"
|
|
547
|
+
},
|
|
548
|
+
"kind": "SpanKind.INTERNAL",
|
|
549
|
+
"parent_id": "0x664b8602df509578",
|
|
550
|
+
"start_time": "2025-11-27T10:23:17.334369Z",
|
|
551
|
+
"end_time": "2025-11-27T10:23:18.525322Z",
|
|
552
|
+
"status": {
|
|
553
|
+
"status_code": "OK"
|
|
554
|
+
},
|
|
555
|
+
"attributes": {
|
|
556
|
+
"input.mime_type": "application/json",
|
|
557
|
+
"input.value": "{\"messages\": [{\"id\": \"992c21c8-014f-4d98-be64-cbf311832327\", \"content\": \"You are the leader of a team and sub-teams of AI Agents.\\nYour task is to coordinate the team to complete the user's request.\\n\\nHere are the members in your team:\\n<team_members>\\n - Agent 1:\\n - ID: math-agent\\n - Name: math agent\\n - Agent 2:\\n - ID: web-search-agent\\n - Name: web search agent\\n</team_members>\\n\\n<how_to_respond>\\n- Your role is to delegate tasks to members in your team with the highest likelihood of completing the user's request.\\n- Carefully analyze the tools available to the members and their roles before delegating tasks.\\n- You cannot use a member tool directly. You can only delegate tasks to members.\\n- When you delegate a task to another member, make sure to include:\\n - member_id (str): The ID of the member to delegate the task to. Use only the ID of the member, not the ID of the team followed by the ID of the member.\\n - task (str): A clear description of the task. Determine the best way to describe the task to the member.\\n- You can delegate tasks to multiple members at once.\\n- You must always analyze the responses from members before responding to the user.\\n- After analyzing the responses from the members, if you feel the task has been completed, you can stop and respond to the user.\\n- If you are NOT satisfied with the responses from the members, you should re-assign the task to a different member.\\n- For simple greetings, thanks, or questions about the team itself, you should respond directly.\\n- For all work requests, tasks, or questions requiring expertise, route to appropriate team members.\\n</how_to_respond>\\n\\n<instructions>\\nYou are a team of agents that can solve math problems and search the web for information. For math problems, use the math agent. For web search, use the web search agent. You do not have any prior factual knowledge so use the web search agent to get the information you need always.\\n</instructions>\\n\\n<additional_information>\\n- Use markdown to format your answers.\\n</additional_information>\", \"from_history\": false, \"stop_after_tool_call\": false, \"role\": \"system\", \"created_at\": 1764238991}, {\"id\": \"ade3d92b-7fb5-4663-8ff0-d05466a2e090\", \"content\": \"What is the 10 + 10 * 2?\", \"from_history\": false, \"stop_after_tool_call\": false, \"role\": \"user\", \"created_at\": 1764238991}, {\"id\": \"b1f1b60a-299f-43d9-948f-769a9f7fb985\", \"from_history\": false, \"stop_after_tool_call\": false, \"role\": \"assistant\", \"tool_calls\": [{\"id\": \"call_zOP33MupFY43i9cXSwh0CBOy\", \"function\": {\"arguments\": \"{\\\"member_id\\\":\\\"math-agent\\\",\\\"task\\\":\\\"Calculate the result of the expression 10 + 10 * 2.\\\"}\", \"name\": \"delegate_task_to_member\"}, \"type\": \"function\"}], \"metrics\": {\"input_tokens\": 571, \"output_tokens\": 36, \"total_tokens\": 607, \"duration\": 1.462890666211024}, \"created_at\": 1764238991}, {\"id\": \"e9bfac50-04ef-47aa-907b-ae24551d0179\", \"content\": \"To solve \\\\( 10 + 10 \\\\times 2 \\\\), we first calculate the multiplication:\\n\\n- \\\\( 10 \\\\times 2 = 20 \\\\)\\n\\nThen we add the result to 10:\\n\\n- \\\\( 10 + 20 = 30 \\\\)\\n\\nSo, the result of \\\\( 10 + 10 \\\\times 2 \\\\) is **30**.\", \"from_history\": false, \"stop_after_tool_call\": false, \"role\": \"tool\", \"tool_call_id\": \"call_zOP33MupFY43i9cXSwh0CBOy\", \"tool_name\": \"delegate_task_to_member\", \"tool_args\": {\"member_id\": \"math-agent\", \"task\": \"Calculate the result of the expression 10 + 10 * 2.\"}, \"tool_call_error\": false, \"metrics\": {\"duration\": 0.0005257909651845694}, \"created_at\": 1764238997}]}",
|
|
558
|
+
"llm.input_messages.0.message.role": "system",
|
|
559
|
+
"llm.input_messages.0.message.content": "You are the leader of a team and sub-teams of AI Agents.\nYour task is to coordinate the team to complete the user's request.\n\nHere are the members in your team:\n<team_members>\n - Agent 1:\n - ID: math-agent\n - Name: math agent\n - Agent 2:\n - ID: web-search-agent\n - Name: web search agent\n</team_members>\n\n<how_to_respond>\n- Your role is to delegate tasks to members in your team with the highest likelihood of completing the user's request.\n- Carefully analyze the tools available to the members and their roles before delegating tasks.\n- You cannot use a member tool directly. You can only delegate tasks to members.\n- When you delegate a task to another member, make sure to include:\n - member_id (str): The ID of the member to delegate the task to. Use only the ID of the member, not the ID of the team followed by the ID of the member.\n - task (str): A clear description of the task. Determine the best way to describe the task to the member.\n- You can delegate tasks to multiple members at once.\n- You must always analyze the responses from members before responding to the user.\n- After analyzing the responses from the members, if you feel the task has been completed, you can stop and respond to the user.\n- If you are NOT satisfied with the responses from the members, you should re-assign the task to a different member.\n- For simple greetings, thanks, or questions about the team itself, you should respond directly.\n- For all work requests, tasks, or questions requiring expertise, route to appropriate team members.\n</how_to_respond>\n\n<instructions>\nYou are a team of agents that can solve math problems and search the web for information. For math problems, use the math agent. For web search, use the web search agent. You do not have any prior factual knowledge so use the web search agent to get the information you need always.\n</instructions>\n\n<additional_information>\n- Use markdown to format your answers.\n</additional_information>",
|
|
560
|
+
"llm.input_messages.1.message.role": "user",
|
|
561
|
+
"llm.input_messages.1.message.content": "What is the 10 + 10 * 2?",
|
|
562
|
+
"llm.input_messages.2.message.role": "assistant",
|
|
563
|
+
"llm.input_messages.2.message.tool_calls.0.tool_call.id": "call_zOP33MupFY43i9cXSwh0CBOy",
|
|
564
|
+
"llm.input_messages.2.message.tool_calls.0.tool_call.function.name": "delegate_task_to_member",
|
|
565
|
+
"llm.input_messages.2.message.tool_calls.0.tool_call.function.arguments": "\"{\\\"member_id\\\":\\\"math-agent\\\",\\\"task\\\":\\\"Calculate the result of the expression 10 + 10 * 2.\\\"}\"",
|
|
566
|
+
"llm.input_messages.3.message.role": "tool",
|
|
567
|
+
"llm.input_messages.3.message.content": "To solve \\( 10 + 10 \\times 2 \\), we first calculate the multiplication:\n\n- \\( 10 \\times 2 = 20 \\)\n\nThen we add the result to 10:\n\n- \\( 10 + 20 = 30 \\)\n\nSo, the result of \\( 10 + 10 \\times 2 \\) is **30**.",
|
|
568
|
+
"llm.tools.0.tool.json_schema": "{\"type\": \"function\", \"function\": {\"name\": \"delegate_task_to_member\", \"description\": \"Use this function to delegate a task to the selected team member.\\nYou must provide a clear and concise description of the task the member should achieve AND the expected output.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"member_id\": {\"type\": \"string\", \"description\": \"(str) The ID of the member to delegate the task to. Use only the ID of the member, not the ID of the team followed by the ID of the member.\"}, \"task\": {\"type\": \"string\", \"description\": \"(str) A clear and concise description of the task the member should achieve.\"}}, \"required\": [\"member_id\", \"task\"], \"additionalProperties\": false}}}",
|
|
569
|
+
"llm.model_name": "gpt-4o-mini",
|
|
570
|
+
"llm.provider": "OpenAI",
|
|
571
|
+
"output.mime_type": "application/json",
|
|
572
|
+
"llm.output_messages.0.message.role": "assistant",
|
|
573
|
+
"llm.output_messages.0.message.content": "The result of the expression \\( 10 + 10 \\times 2 \\) is **30**.",
|
|
574
|
+
"output.value": "[{\"role\": \"assistant\", \"content\": \"The result of the expression \\\\( 10 + 10 \\\\times 2 \\\\) is **30**.\"}]",
|
|
575
|
+
"llm.token_count.prompt": 693,
|
|
576
|
+
"llm.token_count.completion": 23,
|
|
577
|
+
"openinference.span.kind": "LLM"
|
|
578
|
+
},
|
|
579
|
+
"events": [],
|
|
580
|
+
"links": [],
|
|
581
|
+
"resource": {
|
|
582
|
+
"attributes": {
|
|
583
|
+
"telemetry.sdk.language": "python",
|
|
584
|
+
"telemetry.sdk.name": "opentelemetry",
|
|
585
|
+
"telemetry.sdk.version": "1.38.0",
|
|
586
|
+
"service.name": "unknown_service"
|
|
587
|
+
},
|
|
588
|
+
"schema_url": ""
|
|
589
|
+
}
|
|
590
|
+
},
|
|
591
|
+
{
|
|
592
|
+
"name": "Team.run",
|
|
593
|
+
"context": {
|
|
594
|
+
"trace_id": "0xc0fa7b53c66c2d5597ea26fd9ab8c8f4",
|
|
595
|
+
"span_id": "0x664b8602df509578",
|
|
596
|
+
"trace_state": "[]"
|
|
597
|
+
},
|
|
598
|
+
"kind": "SpanKind.INTERNAL",
|
|
599
|
+
"parent_id": "0x7cc6e75c71003136",
|
|
600
|
+
"start_time": "2025-11-27T10:23:11.860566Z",
|
|
601
|
+
"end_time": "2025-11-27T10:23:19.413619Z",
|
|
602
|
+
"status": {
|
|
603
|
+
"status_code": "OK"
|
|
604
|
+
},
|
|
605
|
+
"attributes": {
|
|
606
|
+
"graph.node.id": "e38ca594d6ee9207",
|
|
607
|
+
"input.value": "What is the 10 + 10 * 2?",
|
|
608
|
+
"agno.team.id": "c6747bdf-7a15-49ac-b7b5-afb44a4a1ec0",
|
|
609
|
+
"agno.team": "",
|
|
610
|
+
"graph.node.name": "web search agent",
|
|
611
|
+
"agno.agent.id": "web-search-agent",
|
|
612
|
+
"agno.math agent.agent": "math agent",
|
|
613
|
+
"agno.math agent.tools": [
|
|
614
|
+
"add",
|
|
615
|
+
"multiply"
|
|
616
|
+
],
|
|
617
|
+
"agno.web search agent.agent": "web search agent",
|
|
618
|
+
"agno.web search agent.tools": [
|
|
619
|
+
"duckduckgo_search",
|
|
620
|
+
"duckduckgo_news"
|
|
621
|
+
],
|
|
622
|
+
"session.id": "63aa2162-8988-487d-89e4-c1d00e83b5e2",
|
|
623
|
+
"output.value": "The result of the expression \\( 10 + 10 \\times 2 \\) is **30**.",
|
|
624
|
+
"output.mime_type": "application/json",
|
|
625
|
+
"agno.run.id": "64946bc3-208b-4ada-972e-21d50fced71b",
|
|
626
|
+
"openinference.span.kind": "AGENT"
|
|
627
|
+
},
|
|
628
|
+
"events": [],
|
|
629
|
+
"links": [],
|
|
630
|
+
"resource": {
|
|
631
|
+
"attributes": {
|
|
632
|
+
"telemetry.sdk.language": "python",
|
|
633
|
+
"telemetry.sdk.name": "opentelemetry",
|
|
634
|
+
"telemetry.sdk.version": "1.38.0",
|
|
635
|
+
"service.name": "unknown_service"
|
|
636
|
+
},
|
|
637
|
+
"schema_url": ""
|
|
638
|
+
}
|
|
639
|
+
},
|
|
640
|
+
{
|
|
641
|
+
"name": "quraite/testcase-1",
|
|
642
|
+
"context": {
|
|
643
|
+
"trace_id": "0xc0fa7b53c66c2d5597ea26fd9ab8c8f4",
|
|
644
|
+
"span_id": "0x7cc6e75c71003136",
|
|
645
|
+
"trace_state": "[]"
|
|
646
|
+
},
|
|
647
|
+
"kind": "SpanKind.INTERNAL",
|
|
648
|
+
"parent_id": null,
|
|
649
|
+
"start_time": "2025-11-27T10:23:11.860060Z",
|
|
650
|
+
"end_time": "2025-11-27T10:23:19.425866Z",
|
|
651
|
+
"status": {
|
|
652
|
+
"status_code": "UNSET"
|
|
653
|
+
},
|
|
654
|
+
"attributes": {},
|
|
655
|
+
"events": [],
|
|
656
|
+
"links": [],
|
|
657
|
+
"resource": {
|
|
658
|
+
"attributes": {
|
|
659
|
+
"telemetry.sdk.language": "python",
|
|
660
|
+
"telemetry.sdk.name": "opentelemetry",
|
|
661
|
+
"telemetry.sdk.version": "1.38.0",
|
|
662
|
+
"service.name": "unknown_service"
|
|
663
|
+
},
|
|
664
|
+
"schema_url": ""
|
|
665
|
+
}
|
|
666
|
+
}
|
|
667
|
+
]
|
|
668
|
+
}
|
|
669
|
+
]
|