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,402 @@
|
|
|
1
|
+
[
|
|
2
|
+
{
|
|
3
|
+
"trace_id": "7e45fcad",
|
|
4
|
+
"spans": [
|
|
5
|
+
{
|
|
6
|
+
"name": "response",
|
|
7
|
+
"context": {
|
|
8
|
+
"trace_id": "0x7e45fcad8c76dcc0e3b20357a3619a7a",
|
|
9
|
+
"span_id": "0x0f7c08aa852e8ca8",
|
|
10
|
+
"trace_state": "[]"
|
|
11
|
+
},
|
|
12
|
+
"kind": "SpanKind.INTERNAL",
|
|
13
|
+
"parent_id": "0x77b5cefaeec14b16",
|
|
14
|
+
"start_time": "2025-11-27T09:57:58.042635Z",
|
|
15
|
+
"end_time": "2025-11-27T09:58:00.728682Z",
|
|
16
|
+
"status": {
|
|
17
|
+
"status_code": "OK"
|
|
18
|
+
},
|
|
19
|
+
"attributes": {
|
|
20
|
+
"llm.system": "openai",
|
|
21
|
+
"output.mime_type": "application/json",
|
|
22
|
+
"output.value": "{\"id\":\"resp_0883fd0b1ec0993200692820a6701481909204391cb570b72f\",\"created_at\":1764237478.0,\"error\":null,\"incomplete_details\":null,\"instructions\":\"You determine which agent to use based on the user's homework question\",\"metadata\":{},\"model\":\"gpt-4o-2024-08-06\",\"object\":\"response\",\"output\":[{\"arguments\":\"{}\",\"call_id\":\"call_Z4VVzuP1hZyrlnoKyYKKCehs\",\"name\":\"transfer_to_history_tutor\",\"type\":\"function_call\",\"id\":\"fc_0883fd0b1ec0993200692820a73660819096164cbe2c952c80\",\"status\":\"completed\"}],\"parallel_tool_calls\":true,\"temperature\":1.0,\"tool_choice\":\"auto\",\"tools\":[{\"name\":\"transfer_to_history_tutor\",\"parameters\":{\"additionalProperties\":false,\"type\":\"object\",\"properties\":{},\"required\":[]},\"strict\":true,\"type\":\"function\",\"description\":\"Handoff to the History Tutor agent to handle the request. Specialist agent for historical questions\"},{\"name\":\"transfer_to_math_tutor\",\"parameters\":{\"additionalProperties\":false,\"type\":\"object\",\"properties\":{},\"required\":[]},\"strict\":true,\"type\":\"function\",\"description\":\"Handoff to the Math Tutor agent to handle the request. Specialist agent for math questions\"}],\"top_p\":1.0,\"background\":false,\"conversation\":null,\"max_output_tokens\":null,\"max_tool_calls\":null,\"previous_response_id\":null,\"prompt\":null,\"prompt_cache_key\":null,\"reasoning\":{\"effort\":null,\"generate_summary\":null,\"summary\":null},\"safety_identifier\":null,\"service_tier\":\"default\",\"status\":\"completed\",\"text\":{\"format\":{\"type\":\"text\"},\"verbosity\":\"medium\"},\"top_logprobs\":0,\"truncation\":\"disabled\",\"usage\":{\"input_tokens\":107,\"input_tokens_details\":{\"cached_tokens\":0},\"output_tokens\":14,\"output_tokens_details\":{\"reasoning_tokens\":0},\"total_tokens\":121},\"user\":null,\"billing\":{\"payer\":\"developer\"},\"prompt_cache_retention\":null,\"store\":true}",
|
|
23
|
+
"llm.tools.0.tool.json_schema": "{\"type\": \"function\", \"function\": {\"name\": \"transfer_to_history_tutor\", \"description\": \"Handoff to the History Tutor agent to handle the request. Specialist agent for historical questions\", \"parameters\": {\"additionalProperties\": false, \"type\": \"object\", \"properties\": {}, \"required\": []}, \"strict\": true}}",
|
|
24
|
+
"llm.tools.1.tool.json_schema": "{\"type\": \"function\", \"function\": {\"name\": \"transfer_to_math_tutor\", \"description\": \"Handoff to the Math Tutor agent to handle the request. Specialist agent for math questions\", \"parameters\": {\"additionalProperties\": false, \"type\": \"object\", \"properties\": {}, \"required\": []}, \"strict\": true}}",
|
|
25
|
+
"llm.token_count.completion": 14,
|
|
26
|
+
"llm.token_count.prompt": 107,
|
|
27
|
+
"llm.token_count.total": 121,
|
|
28
|
+
"llm.token_count.prompt_details.cache_read": 0,
|
|
29
|
+
"llm.token_count.completion_details.reasoning": 0,
|
|
30
|
+
"llm.output_messages.0.message.role": "assistant",
|
|
31
|
+
"llm.output_messages.0.message.tool_calls.0.tool_call.id": "call_Z4VVzuP1hZyrlnoKyYKKCehs",
|
|
32
|
+
"llm.output_messages.0.message.tool_calls.0.tool_call.function.name": "transfer_to_history_tutor",
|
|
33
|
+
"llm.input_messages.0.message.role": "system",
|
|
34
|
+
"llm.input_messages.0.message.content": "You determine which agent to use based on the user's homework question",
|
|
35
|
+
"llm.model_name": "gpt-4o-2024-08-06",
|
|
36
|
+
"llm.invocation_parameters": "{\"id\": \"resp_0883fd0b1ec0993200692820a6701481909204391cb570b72f\", \"created_at\": 1764237478.0, \"instructions\": \"You determine which agent to use based on the user's homework question\", \"metadata\": {}, \"model\": \"gpt-4o-2024-08-06\", \"parallel_tool_calls\": true, \"temperature\": 1.0, \"tool_choice\": \"auto\", \"top_p\": 1.0, \"background\": false, \"reasoning\": {}, \"service_tier\": \"default\", \"text\": {\"format\": {\"type\": \"text\"}, \"verbosity\": \"medium\"}, \"top_logprobs\": 0, \"truncation\": \"disabled\", \"billing\": {\"payer\": \"developer\"}, \"store\": true}",
|
|
37
|
+
"input.mime_type": "application/json",
|
|
38
|
+
"input.value": "[{\"content\": \"What is the number of important events in 2025 and 2026?\", \"role\": \"user\"}]",
|
|
39
|
+
"llm.input_messages.1.message.role": "user",
|
|
40
|
+
"llm.input_messages.1.message.content": "What is the number of important events in 2025 and 2026?",
|
|
41
|
+
"openinference.span.kind": "LLM"
|
|
42
|
+
},
|
|
43
|
+
"events": [],
|
|
44
|
+
"links": [],
|
|
45
|
+
"resource": {
|
|
46
|
+
"attributes": {
|
|
47
|
+
"telemetry.sdk.language": "python",
|
|
48
|
+
"telemetry.sdk.name": "opentelemetry",
|
|
49
|
+
"telemetry.sdk.version": "1.38.0",
|
|
50
|
+
"service.name": "unknown_service"
|
|
51
|
+
},
|
|
52
|
+
"schema_url": ""
|
|
53
|
+
}
|
|
54
|
+
},
|
|
55
|
+
{
|
|
56
|
+
"name": "handoff to History Tutor",
|
|
57
|
+
"context": {
|
|
58
|
+
"trace_id": "0x7e45fcad8c76dcc0e3b20357a3619a7a",
|
|
59
|
+
"span_id": "0x47bccd79f807cb7d",
|
|
60
|
+
"trace_state": "[]"
|
|
61
|
+
},
|
|
62
|
+
"kind": "SpanKind.INTERNAL",
|
|
63
|
+
"parent_id": "0x77b5cefaeec14b16",
|
|
64
|
+
"start_time": "2025-11-27T09:58:00.729406Z",
|
|
65
|
+
"end_time": "2025-11-27T09:58:00.729627Z",
|
|
66
|
+
"status": {
|
|
67
|
+
"status_code": "OK"
|
|
68
|
+
},
|
|
69
|
+
"attributes": {
|
|
70
|
+
"llm.system": "openai",
|
|
71
|
+
"openinference.span.kind": "TOOL"
|
|
72
|
+
},
|
|
73
|
+
"events": [],
|
|
74
|
+
"links": [],
|
|
75
|
+
"resource": {
|
|
76
|
+
"attributes": {
|
|
77
|
+
"telemetry.sdk.language": "python",
|
|
78
|
+
"telemetry.sdk.name": "opentelemetry",
|
|
79
|
+
"telemetry.sdk.version": "1.38.0",
|
|
80
|
+
"service.name": "unknown_service"
|
|
81
|
+
},
|
|
82
|
+
"schema_url": ""
|
|
83
|
+
}
|
|
84
|
+
},
|
|
85
|
+
{
|
|
86
|
+
"name": "Triage Agent",
|
|
87
|
+
"context": {
|
|
88
|
+
"trace_id": "0x7e45fcad8c76dcc0e3b20357a3619a7a",
|
|
89
|
+
"span_id": "0x77b5cefaeec14b16",
|
|
90
|
+
"trace_state": "[]"
|
|
91
|
+
},
|
|
92
|
+
"kind": "SpanKind.INTERNAL",
|
|
93
|
+
"parent_id": "0x9727810d91b57327",
|
|
94
|
+
"start_time": "2025-11-27T09:57:58.030834Z",
|
|
95
|
+
"end_time": "2025-11-27T09:58:00.729737Z",
|
|
96
|
+
"status": {
|
|
97
|
+
"status_code": "OK"
|
|
98
|
+
},
|
|
99
|
+
"attributes": {
|
|
100
|
+
"llm.system": "openai",
|
|
101
|
+
"graph.node.id": "Triage Agent",
|
|
102
|
+
"openinference.span.kind": "AGENT"
|
|
103
|
+
},
|
|
104
|
+
"events": [],
|
|
105
|
+
"links": [],
|
|
106
|
+
"resource": {
|
|
107
|
+
"attributes": {
|
|
108
|
+
"telemetry.sdk.language": "python",
|
|
109
|
+
"telemetry.sdk.name": "opentelemetry",
|
|
110
|
+
"telemetry.sdk.version": "1.38.0",
|
|
111
|
+
"service.name": "unknown_service"
|
|
112
|
+
},
|
|
113
|
+
"schema_url": ""
|
|
114
|
+
}
|
|
115
|
+
},
|
|
116
|
+
{
|
|
117
|
+
"name": "response",
|
|
118
|
+
"context": {
|
|
119
|
+
"trace_id": "0x7e45fcad8c76dcc0e3b20357a3619a7a",
|
|
120
|
+
"span_id": "0x03240f9fc1cfc6a9",
|
|
121
|
+
"trace_state": "[]"
|
|
122
|
+
},
|
|
123
|
+
"kind": "SpanKind.INTERNAL",
|
|
124
|
+
"parent_id": "0xed69a3c7dd463fb5",
|
|
125
|
+
"start_time": "2025-11-27T09:58:00.730380Z",
|
|
126
|
+
"end_time": "2025-11-27T09:58:03.173568Z",
|
|
127
|
+
"status": {
|
|
128
|
+
"status_code": "OK"
|
|
129
|
+
},
|
|
130
|
+
"attributes": {
|
|
131
|
+
"llm.system": "openai",
|
|
132
|
+
"output.mime_type": "application/json",
|
|
133
|
+
"output.value": "{\"id\":\"resp_0883fd0b1ec0993200692820a8e974819095de9df24b257c43\",\"created_at\":1764237480.0,\"error\":null,\"incomplete_details\":null,\"instructions\":\"You provide assistance with historical queries. Explain important events and context clearly.\",\"metadata\":{},\"model\":\"gpt-4o-mini-2024-07-18\",\"object\":\"response\",\"output\":[{\"arguments\":\"{\\\"year\\\":2025}\",\"call_id\":\"call_5iqA6wKx0waoogrWzFuIgSw3\",\"name\":\"find_important_events_number\",\"type\":\"function_call\",\"id\":\"fc_0883fd0b1ec0993200692820aa14a481909017c2f650445c77\",\"status\":\"completed\"},{\"arguments\":\"{\\\"year\\\":2026}\",\"call_id\":\"call_piLkk77q5FM1g22QGrhJLCeQ\",\"name\":\"find_important_events_number\",\"type\":\"function_call\",\"id\":\"fc_0883fd0b1ec0993200692820aa6b6c8190a3395a30005655c4\",\"status\":\"completed\"}],\"parallel_tool_calls\":true,\"temperature\":1.0,\"tool_choice\":\"auto\",\"tools\":[{\"name\":\"find_important_events_number\",\"parameters\":{\"properties\":{\"year\":{\"title\":\"Year\",\"type\":\"integer\"}},\"required\":[\"year\"],\"title\":\"find_important_events_number_args\",\"type\":\"object\",\"additionalProperties\":false},\"strict\":true,\"type\":\"function\",\"description\":null}],\"top_p\":1.0,\"background\":false,\"conversation\":null,\"max_output_tokens\":null,\"max_tool_calls\":null,\"previous_response_id\":null,\"prompt\":null,\"prompt_cache_key\":null,\"reasoning\":{\"effort\":null,\"generate_summary\":null,\"summary\":null},\"safety_identifier\":null,\"service_tier\":\"default\",\"status\":\"completed\",\"text\":{\"format\":{\"type\":\"text\"},\"verbosity\":\"medium\"},\"top_logprobs\":0,\"truncation\":\"disabled\",\"usage\":{\"input_tokens\":55,\"input_tokens_details\":{\"cached_tokens\":0},\"output_tokens\":52,\"output_tokens_details\":{\"reasoning_tokens\":0},\"total_tokens\":107},\"user\":null,\"billing\":{\"payer\":\"developer\"},\"prompt_cache_retention\":null,\"store\":true}",
|
|
134
|
+
"llm.tools.0.tool.json_schema": "{\"type\": \"function\", \"function\": {\"name\": \"find_important_events_number\", \"description\": null, \"parameters\": {\"properties\": {\"year\": {\"title\": \"Year\", \"type\": \"integer\"}}, \"required\": [\"year\"], \"title\": \"find_important_events_number_args\", \"type\": \"object\", \"additionalProperties\": false}, \"strict\": true}}",
|
|
135
|
+
"llm.token_count.completion": 52,
|
|
136
|
+
"llm.token_count.prompt": 55,
|
|
137
|
+
"llm.token_count.total": 107,
|
|
138
|
+
"llm.token_count.prompt_details.cache_read": 0,
|
|
139
|
+
"llm.token_count.completion_details.reasoning": 0,
|
|
140
|
+
"llm.output_messages.0.message.tool_calls.0.tool_call.id": "call_5iqA6wKx0waoogrWzFuIgSw3",
|
|
141
|
+
"llm.output_messages.0.message.tool_calls.0.tool_call.function.name": "find_important_events_number",
|
|
142
|
+
"llm.output_messages.0.message.tool_calls.0.tool_call.function.arguments": "{\"year\":2025}",
|
|
143
|
+
"llm.output_messages.0.message.role": "assistant",
|
|
144
|
+
"llm.output_messages.0.message.tool_calls.1.tool_call.id": "call_piLkk77q5FM1g22QGrhJLCeQ",
|
|
145
|
+
"llm.output_messages.0.message.tool_calls.1.tool_call.function.name": "find_important_events_number",
|
|
146
|
+
"llm.output_messages.0.message.tool_calls.1.tool_call.function.arguments": "{\"year\":2026}",
|
|
147
|
+
"llm.input_messages.0.message.role": "system",
|
|
148
|
+
"llm.input_messages.0.message.content": "You provide assistance with historical queries. Explain important events and context clearly.",
|
|
149
|
+
"llm.model_name": "gpt-4o-mini-2024-07-18",
|
|
150
|
+
"llm.invocation_parameters": "{\"id\": \"resp_0883fd0b1ec0993200692820a8e974819095de9df24b257c43\", \"created_at\": 1764237480.0, \"instructions\": \"You provide assistance with historical queries. Explain important events and context clearly.\", \"metadata\": {}, \"model\": \"gpt-4o-mini-2024-07-18\", \"parallel_tool_calls\": true, \"temperature\": 1.0, \"tool_choice\": \"auto\", \"top_p\": 1.0, \"background\": false, \"reasoning\": {}, \"service_tier\": \"default\", \"text\": {\"format\": {\"type\": \"text\"}, \"verbosity\": \"medium\"}, \"top_logprobs\": 0, \"truncation\": \"disabled\", \"billing\": {\"payer\": \"developer\"}, \"store\": true}",
|
|
151
|
+
"input.mime_type": "application/json",
|
|
152
|
+
"input.value": "[{\"content\": \"What is the number of important events in 2025 and 2026?\", \"role\": \"user\"}, {\"arguments\": \"{}\", \"call_id\": \"call_Z4VVzuP1hZyrlnoKyYKKCehs\", \"name\": \"transfer_to_history_tutor\", \"type\": \"function_call\", \"id\": \"fc_0883fd0b1ec0993200692820a73660819096164cbe2c952c80\", \"status\": \"completed\"}, {\"call_id\": \"call_Z4VVzuP1hZyrlnoKyYKKCehs\", \"output\": \"{\\\"assistant\\\": \\\"History Tutor\\\"}\", \"type\": \"function_call_output\"}]",
|
|
153
|
+
"llm.input_messages.1.message.role": "user",
|
|
154
|
+
"llm.input_messages.1.message.content": "What is the number of important events in 2025 and 2026?",
|
|
155
|
+
"llm.input_messages.2.message.role": "assistant",
|
|
156
|
+
"llm.input_messages.2.message.tool_calls.0.tool_call.id": "call_Z4VVzuP1hZyrlnoKyYKKCehs",
|
|
157
|
+
"llm.input_messages.2.message.tool_calls.0.tool_call.function.name": "transfer_to_history_tutor",
|
|
158
|
+
"llm.input_messages.3.message.role": "tool",
|
|
159
|
+
"llm.input_messages.3.message.tool_call_id": "call_Z4VVzuP1hZyrlnoKyYKKCehs",
|
|
160
|
+
"llm.input_messages.3.message.content": "{\"assistant\": \"History Tutor\"}",
|
|
161
|
+
"openinference.span.kind": "LLM"
|
|
162
|
+
},
|
|
163
|
+
"events": [],
|
|
164
|
+
"links": [],
|
|
165
|
+
"resource": {
|
|
166
|
+
"attributes": {
|
|
167
|
+
"telemetry.sdk.language": "python",
|
|
168
|
+
"telemetry.sdk.name": "opentelemetry",
|
|
169
|
+
"telemetry.sdk.version": "1.38.0",
|
|
170
|
+
"service.name": "unknown_service"
|
|
171
|
+
},
|
|
172
|
+
"schema_url": ""
|
|
173
|
+
}
|
|
174
|
+
},
|
|
175
|
+
{
|
|
176
|
+
"name": "find_important_events_number",
|
|
177
|
+
"context": {
|
|
178
|
+
"trace_id": "0x7e45fcad8c76dcc0e3b20357a3619a7a",
|
|
179
|
+
"span_id": "0x5f51d19752d002ff",
|
|
180
|
+
"trace_state": "[]"
|
|
181
|
+
},
|
|
182
|
+
"kind": "SpanKind.INTERNAL",
|
|
183
|
+
"parent_id": "0xed69a3c7dd463fb5",
|
|
184
|
+
"start_time": "2025-11-27T09:58:03.175034Z",
|
|
185
|
+
"end_time": "2025-11-27T09:58:03.176100Z",
|
|
186
|
+
"status": {
|
|
187
|
+
"status_code": "OK"
|
|
188
|
+
},
|
|
189
|
+
"attributes": {
|
|
190
|
+
"llm.system": "openai",
|
|
191
|
+
"tool.name": "find_important_events_number",
|
|
192
|
+
"input.value": "{\"year\":2025}",
|
|
193
|
+
"input.mime_type": "application/json",
|
|
194
|
+
"output.value": "The number of important events in 2025 is 10.",
|
|
195
|
+
"openinference.span.kind": "TOOL"
|
|
196
|
+
},
|
|
197
|
+
"events": [],
|
|
198
|
+
"links": [],
|
|
199
|
+
"resource": {
|
|
200
|
+
"attributes": {
|
|
201
|
+
"telemetry.sdk.language": "python",
|
|
202
|
+
"telemetry.sdk.name": "opentelemetry",
|
|
203
|
+
"telemetry.sdk.version": "1.38.0",
|
|
204
|
+
"service.name": "unknown_service"
|
|
205
|
+
},
|
|
206
|
+
"schema_url": ""
|
|
207
|
+
}
|
|
208
|
+
},
|
|
209
|
+
{
|
|
210
|
+
"name": "find_important_events_number",
|
|
211
|
+
"context": {
|
|
212
|
+
"trace_id": "0x7e45fcad8c76dcc0e3b20357a3619a7a",
|
|
213
|
+
"span_id": "0x44c7739a8b4301e0",
|
|
214
|
+
"trace_state": "[]"
|
|
215
|
+
},
|
|
216
|
+
"kind": "SpanKind.INTERNAL",
|
|
217
|
+
"parent_id": "0xed69a3c7dd463fb5",
|
|
218
|
+
"start_time": "2025-11-27T09:58:03.175433Z",
|
|
219
|
+
"end_time": "2025-11-27T09:58:03.176278Z",
|
|
220
|
+
"status": {
|
|
221
|
+
"status_code": "OK"
|
|
222
|
+
},
|
|
223
|
+
"attributes": {
|
|
224
|
+
"llm.system": "openai",
|
|
225
|
+
"tool.name": "find_important_events_number",
|
|
226
|
+
"input.value": "{\"year\":2026}",
|
|
227
|
+
"input.mime_type": "application/json",
|
|
228
|
+
"output.value": "The number of important events in 2026 is 10.",
|
|
229
|
+
"openinference.span.kind": "TOOL"
|
|
230
|
+
},
|
|
231
|
+
"events": [],
|
|
232
|
+
"links": [],
|
|
233
|
+
"resource": {
|
|
234
|
+
"attributes": {
|
|
235
|
+
"telemetry.sdk.language": "python",
|
|
236
|
+
"telemetry.sdk.name": "opentelemetry",
|
|
237
|
+
"telemetry.sdk.version": "1.38.0",
|
|
238
|
+
"service.name": "unknown_service"
|
|
239
|
+
},
|
|
240
|
+
"schema_url": ""
|
|
241
|
+
}
|
|
242
|
+
},
|
|
243
|
+
{
|
|
244
|
+
"name": "response",
|
|
245
|
+
"context": {
|
|
246
|
+
"trace_id": "0x7e45fcad8c76dcc0e3b20357a3619a7a",
|
|
247
|
+
"span_id": "0xdc3cebff2fe26410",
|
|
248
|
+
"trace_state": "[]"
|
|
249
|
+
},
|
|
250
|
+
"kind": "SpanKind.INTERNAL",
|
|
251
|
+
"parent_id": "0xed69a3c7dd463fb5",
|
|
252
|
+
"start_time": "2025-11-27T09:58:03.177324Z",
|
|
253
|
+
"end_time": "2025-11-27T09:58:05.742520Z",
|
|
254
|
+
"status": {
|
|
255
|
+
"status_code": "OK"
|
|
256
|
+
},
|
|
257
|
+
"attributes": {
|
|
258
|
+
"llm.system": "openai",
|
|
259
|
+
"output.mime_type": "application/json",
|
|
260
|
+
"output.value": "{\"id\":\"resp_0883fd0b1ec0993200692820ab6d308190becd49aab357bd3a\",\"created_at\":1764237483.0,\"error\":null,\"incomplete_details\":null,\"instructions\":\"You provide assistance with historical queries. Explain important events and context clearly.\",\"metadata\":{},\"model\":\"gpt-4o-mini-2024-07-18\",\"object\":\"response\",\"output\":[{\"id\":\"msg_0883fd0b1ec0993200692820abc9308190be599b67e66e1720\",\"content\":[{\"annotations\":[],\"text\":\"There are 10 important events planned for both 2025 and 2026. If you need details about those events or their significance, feel free to ask!\",\"type\":\"output_text\",\"logprobs\":[]}],\"role\":\"assistant\",\"status\":\"completed\",\"type\":\"message\"}],\"parallel_tool_calls\":true,\"temperature\":1.0,\"tool_choice\":\"auto\",\"tools\":[{\"name\":\"find_important_events_number\",\"parameters\":{\"properties\":{\"year\":{\"title\":\"Year\",\"type\":\"integer\"}},\"required\":[\"year\"],\"title\":\"find_important_events_number_args\",\"type\":\"object\",\"additionalProperties\":false},\"strict\":true,\"type\":\"function\",\"description\":null}],\"top_p\":1.0,\"background\":false,\"conversation\":null,\"max_output_tokens\":null,\"max_tool_calls\":null,\"previous_response_id\":null,\"prompt\":null,\"prompt_cache_key\":null,\"reasoning\":{\"effort\":null,\"generate_summary\":null,\"summary\":null},\"safety_identifier\":null,\"service_tier\":\"default\",\"status\":\"completed\",\"text\":{\"format\":{\"type\":\"text\"},\"verbosity\":\"medium\"},\"top_logprobs\":0,\"truncation\":\"disabled\",\"usage\":{\"input_tokens\":191,\"input_tokens_details\":{\"cached_tokens\":0},\"output_tokens\":35,\"output_tokens_details\":{\"reasoning_tokens\":0},\"total_tokens\":226},\"user\":null,\"billing\":{\"payer\":\"developer\"},\"prompt_cache_retention\":null,\"store\":true}",
|
|
261
|
+
"llm.tools.0.tool.json_schema": "{\"type\": \"function\", \"function\": {\"name\": \"find_important_events_number\", \"description\": null, \"parameters\": {\"properties\": {\"year\": {\"title\": \"Year\", \"type\": \"integer\"}}, \"required\": [\"year\"], \"title\": \"find_important_events_number_args\", \"type\": \"object\", \"additionalProperties\": false}, \"strict\": true}}",
|
|
262
|
+
"llm.token_count.completion": 35,
|
|
263
|
+
"llm.token_count.prompt": 191,
|
|
264
|
+
"llm.token_count.total": 226,
|
|
265
|
+
"llm.token_count.prompt_details.cache_read": 0,
|
|
266
|
+
"llm.token_count.completion_details.reasoning": 0,
|
|
267
|
+
"llm.output_messages.0.message.role": "assistant",
|
|
268
|
+
"llm.output_messages.0.message.contents.0.message_content.type": "text",
|
|
269
|
+
"llm.output_messages.0.message.contents.0.message_content.text": "There are 10 important events planned for both 2025 and 2026. If you need details about those events or their significance, feel free to ask!",
|
|
270
|
+
"llm.input_messages.0.message.role": "system",
|
|
271
|
+
"llm.input_messages.0.message.content": "You provide assistance with historical queries. Explain important events and context clearly.",
|
|
272
|
+
"llm.model_name": "gpt-4o-mini-2024-07-18",
|
|
273
|
+
"llm.invocation_parameters": "{\"id\": \"resp_0883fd0b1ec0993200692820ab6d308190becd49aab357bd3a\", \"created_at\": 1764237483.0, \"instructions\": \"You provide assistance with historical queries. Explain important events and context clearly.\", \"metadata\": {}, \"model\": \"gpt-4o-mini-2024-07-18\", \"parallel_tool_calls\": true, \"temperature\": 1.0, \"tool_choice\": \"auto\", \"top_p\": 1.0, \"background\": false, \"reasoning\": {}, \"service_tier\": \"default\", \"text\": {\"format\": {\"type\": \"text\"}, \"verbosity\": \"medium\"}, \"top_logprobs\": 0, \"truncation\": \"disabled\", \"billing\": {\"payer\": \"developer\"}, \"store\": true}",
|
|
274
|
+
"input.mime_type": "application/json",
|
|
275
|
+
"input.value": "[{\"content\": \"What is the number of important events in 2025 and 2026?\", \"role\": \"user\"}, {\"arguments\": \"{}\", \"call_id\": \"call_Z4VVzuP1hZyrlnoKyYKKCehs\", \"name\": \"transfer_to_history_tutor\", \"type\": \"function_call\", \"id\": \"fc_0883fd0b1ec0993200692820a73660819096164cbe2c952c80\", \"status\": \"completed\"}, {\"call_id\": \"call_Z4VVzuP1hZyrlnoKyYKKCehs\", \"output\": \"{\\\"assistant\\\": \\\"History Tutor\\\"}\", \"type\": \"function_call_output\"}, {\"arguments\": \"{\\\"year\\\":2025}\", \"call_id\": \"call_5iqA6wKx0waoogrWzFuIgSw3\", \"name\": \"find_important_events_number\", \"type\": \"function_call\", \"id\": \"fc_0883fd0b1ec0993200692820aa14a481909017c2f650445c77\", \"status\": \"completed\"}, {\"arguments\": \"{\\\"year\\\":2026}\", \"call_id\": \"call_piLkk77q5FM1g22QGrhJLCeQ\", \"name\": \"find_important_events_number\", \"type\": \"function_call\", \"id\": \"fc_0883fd0b1ec0993200692820aa6b6c8190a3395a30005655c4\", \"status\": \"completed\"}, {\"call_id\": \"call_5iqA6wKx0waoogrWzFuIgSw3\", \"output\": \"The number of important events in 2025 is 10.\", \"type\": \"function_call_output\"}, {\"call_id\": \"call_piLkk77q5FM1g22QGrhJLCeQ\", \"output\": \"The number of important events in 2026 is 10.\", \"type\": \"function_call_output\"}]",
|
|
276
|
+
"llm.input_messages.1.message.role": "user",
|
|
277
|
+
"llm.input_messages.1.message.content": "What is the number of important events in 2025 and 2026?",
|
|
278
|
+
"llm.input_messages.2.message.role": "assistant",
|
|
279
|
+
"llm.input_messages.2.message.tool_calls.0.tool_call.id": "call_Z4VVzuP1hZyrlnoKyYKKCehs",
|
|
280
|
+
"llm.input_messages.2.message.tool_calls.0.tool_call.function.name": "transfer_to_history_tutor",
|
|
281
|
+
"llm.input_messages.3.message.role": "tool",
|
|
282
|
+
"llm.input_messages.3.message.tool_call_id": "call_Z4VVzuP1hZyrlnoKyYKKCehs",
|
|
283
|
+
"llm.input_messages.3.message.content": "{\"assistant\": \"History Tutor\"}",
|
|
284
|
+
"llm.input_messages.4.message.role": "assistant",
|
|
285
|
+
"llm.input_messages.4.message.tool_calls.0.tool_call.id": "call_5iqA6wKx0waoogrWzFuIgSw3",
|
|
286
|
+
"llm.input_messages.4.message.tool_calls.0.tool_call.function.name": "find_important_events_number",
|
|
287
|
+
"llm.input_messages.4.message.tool_calls.0.tool_call.function.arguments": "{\"year\":2025}",
|
|
288
|
+
"llm.input_messages.5.message.role": "assistant",
|
|
289
|
+
"llm.input_messages.5.message.tool_calls.0.tool_call.id": "call_piLkk77q5FM1g22QGrhJLCeQ",
|
|
290
|
+
"llm.input_messages.5.message.tool_calls.0.tool_call.function.name": "find_important_events_number",
|
|
291
|
+
"llm.input_messages.5.message.tool_calls.0.tool_call.function.arguments": "{\"year\":2026}",
|
|
292
|
+
"llm.input_messages.6.message.role": "tool",
|
|
293
|
+
"llm.input_messages.6.message.tool_call_id": "call_5iqA6wKx0waoogrWzFuIgSw3",
|
|
294
|
+
"llm.input_messages.6.message.content": "The number of important events in 2025 is 10.",
|
|
295
|
+
"llm.input_messages.7.message.role": "tool",
|
|
296
|
+
"llm.input_messages.7.message.tool_call_id": "call_piLkk77q5FM1g22QGrhJLCeQ",
|
|
297
|
+
"llm.input_messages.7.message.content": "The number of important events in 2026 is 10.",
|
|
298
|
+
"openinference.span.kind": "LLM"
|
|
299
|
+
},
|
|
300
|
+
"events": [],
|
|
301
|
+
"links": [],
|
|
302
|
+
"resource": {
|
|
303
|
+
"attributes": {
|
|
304
|
+
"telemetry.sdk.language": "python",
|
|
305
|
+
"telemetry.sdk.name": "opentelemetry",
|
|
306
|
+
"telemetry.sdk.version": "1.38.0",
|
|
307
|
+
"service.name": "unknown_service"
|
|
308
|
+
},
|
|
309
|
+
"schema_url": ""
|
|
310
|
+
}
|
|
311
|
+
},
|
|
312
|
+
{
|
|
313
|
+
"name": "History Tutor",
|
|
314
|
+
"context": {
|
|
315
|
+
"trace_id": "0x7e45fcad8c76dcc0e3b20357a3619a7a",
|
|
316
|
+
"span_id": "0xed69a3c7dd463fb5",
|
|
317
|
+
"trace_state": "[]"
|
|
318
|
+
},
|
|
319
|
+
"kind": "SpanKind.INTERNAL",
|
|
320
|
+
"parent_id": "0x9727810d91b57327",
|
|
321
|
+
"start_time": "2025-11-27T09:58:00.729882Z",
|
|
322
|
+
"end_time": "2025-11-27T09:58:05.743971Z",
|
|
323
|
+
"status": {
|
|
324
|
+
"status_code": "OK"
|
|
325
|
+
},
|
|
326
|
+
"attributes": {
|
|
327
|
+
"llm.system": "openai",
|
|
328
|
+
"graph.node.id": "History Tutor",
|
|
329
|
+
"graph.node.parent_id": "Triage Agent",
|
|
330
|
+
"openinference.span.kind": "AGENT"
|
|
331
|
+
},
|
|
332
|
+
"events": [],
|
|
333
|
+
"links": [],
|
|
334
|
+
"resource": {
|
|
335
|
+
"attributes": {
|
|
336
|
+
"telemetry.sdk.language": "python",
|
|
337
|
+
"telemetry.sdk.name": "opentelemetry",
|
|
338
|
+
"telemetry.sdk.version": "1.38.0",
|
|
339
|
+
"service.name": "unknown_service"
|
|
340
|
+
},
|
|
341
|
+
"schema_url": ""
|
|
342
|
+
}
|
|
343
|
+
},
|
|
344
|
+
{
|
|
345
|
+
"name": "Agent workflow",
|
|
346
|
+
"context": {
|
|
347
|
+
"trace_id": "0x7e45fcad8c76dcc0e3b20357a3619a7a",
|
|
348
|
+
"span_id": "0x9727810d91b57327",
|
|
349
|
+
"trace_state": "[]"
|
|
350
|
+
},
|
|
351
|
+
"kind": "SpanKind.INTERNAL",
|
|
352
|
+
"parent_id": "0x051b22474a86fef9",
|
|
353
|
+
"start_time": "2025-11-27T09:57:58.030569Z",
|
|
354
|
+
"end_time": "2025-11-27T09:58:05.744178Z",
|
|
355
|
+
"status": {
|
|
356
|
+
"status_code": "OK"
|
|
357
|
+
},
|
|
358
|
+
"attributes": {
|
|
359
|
+
"openinference.span.kind": "AGENT"
|
|
360
|
+
},
|
|
361
|
+
"events": [],
|
|
362
|
+
"links": [],
|
|
363
|
+
"resource": {
|
|
364
|
+
"attributes": {
|
|
365
|
+
"telemetry.sdk.language": "python",
|
|
366
|
+
"telemetry.sdk.name": "opentelemetry",
|
|
367
|
+
"telemetry.sdk.version": "1.38.0",
|
|
368
|
+
"service.name": "unknown_service"
|
|
369
|
+
},
|
|
370
|
+
"schema_url": ""
|
|
371
|
+
}
|
|
372
|
+
},
|
|
373
|
+
{
|
|
374
|
+
"name": "quraite/testcase-1",
|
|
375
|
+
"context": {
|
|
376
|
+
"trace_id": "0x7e45fcad8c76dcc0e3b20357a3619a7a",
|
|
377
|
+
"span_id": "0x051b22474a86fef9",
|
|
378
|
+
"trace_state": "[]"
|
|
379
|
+
},
|
|
380
|
+
"kind": "SpanKind.INTERNAL",
|
|
381
|
+
"parent_id": null,
|
|
382
|
+
"start_time": "2025-11-27T09:57:58.030295Z",
|
|
383
|
+
"end_time": "2025-11-27T09:58:05.745772Z",
|
|
384
|
+
"status": {
|
|
385
|
+
"status_code": "UNSET"
|
|
386
|
+
},
|
|
387
|
+
"attributes": {},
|
|
388
|
+
"events": [],
|
|
389
|
+
"links": [],
|
|
390
|
+
"resource": {
|
|
391
|
+
"attributes": {
|
|
392
|
+
"telemetry.sdk.language": "python",
|
|
393
|
+
"telemetry.sdk.name": "opentelemetry",
|
|
394
|
+
"telemetry.sdk.version": "1.38.0",
|
|
395
|
+
"service.name": "unknown_service"
|
|
396
|
+
},
|
|
397
|
+
"schema_url": ""
|
|
398
|
+
}
|
|
399
|
+
}
|
|
400
|
+
]
|
|
401
|
+
}
|
|
402
|
+
]
|