quraite 0.0.2__py3-none-any.whl → 0.1.0__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 -3
- quraite/adapters/__init__.py +134 -134
- quraite/adapters/agno_adapter.py +159 -159
- quraite/adapters/base.py +123 -123
- quraite/adapters/bedrock_agents_adapter.py +343 -343
- quraite/adapters/flowise_adapter.py +275 -275
- quraite/adapters/google_adk_adapter.py +209 -209
- quraite/adapters/http_adapter.py +239 -239
- quraite/adapters/langflow_adapter.py +192 -192
- quraite/adapters/langgraph_adapter.py +304 -304
- quraite/adapters/langgraph_server_adapter.py +252 -252
- quraite/adapters/n8n_adapter.py +220 -220
- quraite/adapters/openai_agents_adapter.py +269 -269
- quraite/adapters/pydantic_ai_adapter.py +312 -312
- quraite/adapters/smolagents_adapter.py +152 -152
- quraite/logger.py +61 -64
- quraite/schema/message.py +91 -54
- quraite/schema/response.py +16 -16
- quraite/serve/__init__.py +1 -1
- quraite/serve/cloudflared.py +210 -210
- quraite/serve/local_agent.py +360 -360
- quraite/tracing/__init__.py +24 -24
- quraite/tracing/constants.py +16 -16
- quraite/tracing/span_exporter.py +115 -115
- quraite/tracing/span_processor.py +49 -49
- quraite/tracing/tool_extractors.py +290 -290
- quraite/tracing/trace.py +564 -494
- quraite/tracing/types.py +179 -179
- quraite/tracing/utils.py +170 -170
- quraite/utils/json_utils.py +269 -269
- {quraite-0.0.2.dist-info → quraite-0.1.0.dist-info}/METADATA +9 -9
- quraite-0.1.0.dist-info/RECORD +35 -0
- {quraite-0.0.2.dist-info → quraite-0.1.0.dist-info}/WHEEL +1 -1
- quraite/traces/traces_adk_openinference.json +0 -379
- quraite/traces/traces_agno_multi_agent.json +0 -669
- quraite/traces/traces_agno_openinference.json +0 -321
- quraite/traces/traces_crewai_openinference.json +0 -155
- quraite/traces/traces_langgraph_openinference.json +0 -349
- quraite/traces/traces_langgraph_openinference_multi_agent.json +0 -2705
- quraite/traces/traces_langgraph_traceloop.json +0 -510
- quraite/traces/traces_openai_agents_multi_agent_1.json +0 -402
- quraite/traces/traces_openai_agents_openinference.json +0 -341
- quraite/traces/traces_pydantic_openinference.json +0 -286
- quraite/traces/traces_pydantic_openinference_multi_agent_1.json +0 -399
- quraite/traces/traces_pydantic_openinference_multi_agent_2.json +0 -398
- quraite/traces/traces_smol_agents_openinference.json +0 -397
- quraite/traces/traces_smol_agents_tool_calling_openinference.json +0 -704
- quraite-0.0.2.dist-info/RECORD +0 -49
|
@@ -1,398 +0,0 @@
|
|
|
1
|
-
[
|
|
2
|
-
{
|
|
3
|
-
"trace_id": "d597e9f1",
|
|
4
|
-
"spans": [
|
|
5
|
-
{
|
|
6
|
-
"name": "chat gpt-4o-mini",
|
|
7
|
-
"context": {
|
|
8
|
-
"trace_id": "0xd597e9f1999aa5df79fdc62acb27043e",
|
|
9
|
-
"span_id": "0x3ae60332b1722acf",
|
|
10
|
-
"trace_state": "[]"
|
|
11
|
-
},
|
|
12
|
-
"kind": "SpanKind.INTERNAL",
|
|
13
|
-
"parent_id": "0x7298b3026aaad838",
|
|
14
|
-
"start_time": "2025-11-26T13:20:37.070111Z",
|
|
15
|
-
"end_time": "2025-11-26T13:20:38.180877Z",
|
|
16
|
-
"status": {
|
|
17
|
-
"status_code": "UNSET"
|
|
18
|
-
},
|
|
19
|
-
"attributes": {
|
|
20
|
-
"gen_ai.operation.name": "chat",
|
|
21
|
-
"gen_ai.system": "openai",
|
|
22
|
-
"gen_ai.request.model": "gpt-4o-mini",
|
|
23
|
-
"server.address": "api.openai.com",
|
|
24
|
-
"model_request_parameters": "{\"function_tools\": [{\"name\": \"flight_search\", \"parameters_json_schema\": {\"additionalProperties\": false, \"properties\": {\"origin\": {\"type\": \"string\"}, \"destination\": {\"type\": \"string\"}}, \"required\": [\"origin\", \"destination\"], \"type\": \"object\"}, \"description\": null, \"outer_typed_dict_key\": null, \"strict\": true, \"sequential\": false, \"kind\": \"function\", \"metadata\": null}], \"builtin_tools\": [], \"output_mode\": \"tool\", \"output_object\": null, \"output_tools\": [{\"name\": \"final_result_FlightDetails\", \"parameters_json_schema\": {\"properties\": {\"flight_number\": {\"type\": \"string\"}}, \"required\": [\"flight_number\"], \"type\": \"object\", \"additionalProperties\": false}, \"description\": \"FlightDetails: The final response which ends this conversation\", \"outer_typed_dict_key\": null, \"strict\": true, \"sequential\": false, \"kind\": \"output\", \"metadata\": null}, {\"name\": \"final_result_Failed\", \"parameters_json_schema\": {\"properties\": {}, \"type\": \"object\", \"additionalProperties\": false}, \"description\": \"Unable to find a satisfactory choice.\", \"outer_typed_dict_key\": null, \"strict\": false, \"sequential\": false, \"kind\": \"output\", \"metadata\": null}], \"prompted_output_template\": null, \"allow_text_output\": false, \"allow_image_output\": false}",
|
|
25
|
-
"gen_ai.input.messages": "[{\"role\": \"system\", \"parts\": [{\"type\": \"text\", \"content\": \"Use the \\\"flight_search\\\" tool to find a flight from the given origin to the given destination.\"}]}, {\"role\": \"user\", \"parts\": [{\"type\": \"text\", \"content\": \"a to b\"}]}]",
|
|
26
|
-
"gen_ai.output.messages": "[{\"role\": \"assistant\", \"parts\": [{\"type\": \"tool_call\", \"id\": \"call_xO7WglVgkyVVXegPvpSEBrkC\", \"name\": \"flight_search\", \"arguments\": \"{\\\"origin\\\":\\\"a\\\",\\\"destination\\\":\\\"b\\\"}\"}], \"finish_reason\": \"tool_call\"}]",
|
|
27
|
-
"logfire.json_schema": "{\"type\": \"object\", \"properties\": {\"gen_ai.input.messages\": {\"type\": \"array\"}, \"gen_ai.output.messages\": {\"type\": \"array\"}, \"model_request_parameters\": {\"type\": \"object\"}}}",
|
|
28
|
-
"gen_ai.usage.input_tokens": 110,
|
|
29
|
-
"gen_ai.usage.output_tokens": 18,
|
|
30
|
-
"gen_ai.response.model": "gpt-4o-mini-2024-07-18",
|
|
31
|
-
"operation.cost": 2.73e-05,
|
|
32
|
-
"gen_ai.response.id": "chatcmpl-Cg9jhw5NDoLggADA1a9E2oGuPoKdd",
|
|
33
|
-
"gen_ai.response.finish_reasons": [
|
|
34
|
-
"tool_call"
|
|
35
|
-
],
|
|
36
|
-
"openinference.span.kind": "LLM",
|
|
37
|
-
"llm.system": "openai",
|
|
38
|
-
"llm.model_name": "gpt-4o-mini",
|
|
39
|
-
"llm.token_count.prompt": 110,
|
|
40
|
-
"llm.token_count.completion": 18,
|
|
41
|
-
"llm.token_count.total": 128,
|
|
42
|
-
"llm.tools.0.tool.name": "final_result_FlightDetails",
|
|
43
|
-
"llm.tools.0.tool.description": "FlightDetails: The final response which ends this conversation",
|
|
44
|
-
"llm.tools.1.tool.name": "final_result_Failed",
|
|
45
|
-
"llm.tools.1.tool.description": "Unable to find a satisfactory choice.",
|
|
46
|
-
"llm.input_messages.0.message.content": "Use the \"flight_search\" tool to find a flight from the given origin to the given destination.",
|
|
47
|
-
"llm.input_messages.0.message.role": "system",
|
|
48
|
-
"llm.input_messages.1.message.content": "a to b",
|
|
49
|
-
"llm.input_messages.1.message.role": "user",
|
|
50
|
-
"input.value": "a to b",
|
|
51
|
-
"llm.output_messages.0.message.role": "assistant",
|
|
52
|
-
"llm.output_messages.0.message.tool_calls.0.tool_call.function.name": "flight_search",
|
|
53
|
-
"llm.output_messages.0.message.tool_calls.0.tool_call.function.arguments": "{\"origin\":\"a\",\"destination\":\"b\"}",
|
|
54
|
-
"llm.output_messages.0.message.tool_calls.0.tool_call.id": "call_xO7WglVgkyVVXegPvpSEBrkC"
|
|
55
|
-
},
|
|
56
|
-
"events": [],
|
|
57
|
-
"links": [],
|
|
58
|
-
"resource": {
|
|
59
|
-
"attributes": {
|
|
60
|
-
"telemetry.sdk.language": "python",
|
|
61
|
-
"telemetry.sdk.name": "opentelemetry",
|
|
62
|
-
"telemetry.sdk.version": "1.38.0",
|
|
63
|
-
"service.name": "banking-support-agent",
|
|
64
|
-
"service.version": "1.0.0",
|
|
65
|
-
"openinference.project.name": "banking-support-agent"
|
|
66
|
-
},
|
|
67
|
-
"schema_url": ""
|
|
68
|
-
}
|
|
69
|
-
},
|
|
70
|
-
{
|
|
71
|
-
"name": "running tool",
|
|
72
|
-
"context": {
|
|
73
|
-
"trace_id": "0xd597e9f1999aa5df79fdc62acb27043e",
|
|
74
|
-
"span_id": "0x562c786aa838bdee",
|
|
75
|
-
"trace_state": "[]"
|
|
76
|
-
},
|
|
77
|
-
"kind": "SpanKind.INTERNAL",
|
|
78
|
-
"parent_id": "0x3b7b2bc32d95f422",
|
|
79
|
-
"start_time": "2025-11-26T13:20:38.181522Z",
|
|
80
|
-
"end_time": "2025-11-26T13:20:38.181644Z",
|
|
81
|
-
"status": {
|
|
82
|
-
"status_code": "UNSET"
|
|
83
|
-
},
|
|
84
|
-
"attributes": {
|
|
85
|
-
"gen_ai.tool.name": "flight_search",
|
|
86
|
-
"gen_ai.tool.call.id": "call_xO7WglVgkyVVXegPvpSEBrkC",
|
|
87
|
-
"tool_arguments": "{\"origin\":\"a\",\"destination\":\"b\"}",
|
|
88
|
-
"logfire.msg": "running tool: flight_search",
|
|
89
|
-
"logfire.json_schema": "{\"type\": \"object\", \"properties\": {\"tool_arguments\": {\"type\": \"object\"}, \"tool_response\": {\"type\": \"object\"}, \"gen_ai.tool.name\": {}, \"gen_ai.tool.call.id\": {}}}",
|
|
90
|
-
"tool_response": "{\"flight_number\":\"AK456\"}",
|
|
91
|
-
"openinference.span.kind": "TOOL",
|
|
92
|
-
"tool.name": "flight_search",
|
|
93
|
-
"tool_call.id": "call_xO7WglVgkyVVXegPvpSEBrkC"
|
|
94
|
-
},
|
|
95
|
-
"events": [],
|
|
96
|
-
"links": [],
|
|
97
|
-
"resource": {
|
|
98
|
-
"attributes": {
|
|
99
|
-
"telemetry.sdk.language": "python",
|
|
100
|
-
"telemetry.sdk.name": "opentelemetry",
|
|
101
|
-
"telemetry.sdk.version": "1.38.0",
|
|
102
|
-
"service.name": "banking-support-agent",
|
|
103
|
-
"service.version": "1.0.0",
|
|
104
|
-
"openinference.project.name": "banking-support-agent"
|
|
105
|
-
},
|
|
106
|
-
"schema_url": ""
|
|
107
|
-
}
|
|
108
|
-
},
|
|
109
|
-
{
|
|
110
|
-
"name": "running tools",
|
|
111
|
-
"context": {
|
|
112
|
-
"trace_id": "0xd597e9f1999aa5df79fdc62acb27043e",
|
|
113
|
-
"span_id": "0x3b7b2bc32d95f422",
|
|
114
|
-
"trace_state": "[]"
|
|
115
|
-
},
|
|
116
|
-
"kind": "SpanKind.INTERNAL",
|
|
117
|
-
"parent_id": "0x7298b3026aaad838",
|
|
118
|
-
"start_time": "2025-11-26T13:20:38.181416Z",
|
|
119
|
-
"end_time": "2025-11-26T13:20:38.181757Z",
|
|
120
|
-
"status": {
|
|
121
|
-
"status_code": "UNSET"
|
|
122
|
-
},
|
|
123
|
-
"attributes": {
|
|
124
|
-
"tools": [
|
|
125
|
-
"flight_search"
|
|
126
|
-
],
|
|
127
|
-
"logfire.msg": "running 1 tool",
|
|
128
|
-
"openinference.span.kind": "CHAIN"
|
|
129
|
-
},
|
|
130
|
-
"events": [],
|
|
131
|
-
"links": [],
|
|
132
|
-
"resource": {
|
|
133
|
-
"attributes": {
|
|
134
|
-
"telemetry.sdk.language": "python",
|
|
135
|
-
"telemetry.sdk.name": "opentelemetry",
|
|
136
|
-
"telemetry.sdk.version": "1.38.0",
|
|
137
|
-
"service.name": "banking-support-agent",
|
|
138
|
-
"service.version": "1.0.0",
|
|
139
|
-
"openinference.project.name": "banking-support-agent"
|
|
140
|
-
},
|
|
141
|
-
"schema_url": ""
|
|
142
|
-
}
|
|
143
|
-
},
|
|
144
|
-
{
|
|
145
|
-
"name": "chat gpt-4o-mini",
|
|
146
|
-
"context": {
|
|
147
|
-
"trace_id": "0xd597e9f1999aa5df79fdc62acb27043e",
|
|
148
|
-
"span_id": "0xd814cc21f514f60a",
|
|
149
|
-
"trace_state": "[]"
|
|
150
|
-
},
|
|
151
|
-
"kind": "SpanKind.INTERNAL",
|
|
152
|
-
"parent_id": "0x7298b3026aaad838",
|
|
153
|
-
"start_time": "2025-11-26T13:20:38.182339Z",
|
|
154
|
-
"end_time": "2025-11-26T13:20:39.148140Z",
|
|
155
|
-
"status": {
|
|
156
|
-
"status_code": "UNSET"
|
|
157
|
-
},
|
|
158
|
-
"attributes": {
|
|
159
|
-
"gen_ai.operation.name": "chat",
|
|
160
|
-
"gen_ai.system": "openai",
|
|
161
|
-
"gen_ai.request.model": "gpt-4o-mini",
|
|
162
|
-
"server.address": "api.openai.com",
|
|
163
|
-
"model_request_parameters": "{\"function_tools\": [{\"name\": \"flight_search\", \"parameters_json_schema\": {\"additionalProperties\": false, \"properties\": {\"origin\": {\"type\": \"string\"}, \"destination\": {\"type\": \"string\"}}, \"required\": [\"origin\", \"destination\"], \"type\": \"object\"}, \"description\": null, \"outer_typed_dict_key\": null, \"strict\": true, \"sequential\": false, \"kind\": \"function\", \"metadata\": null}], \"builtin_tools\": [], \"output_mode\": \"tool\", \"output_object\": null, \"output_tools\": [{\"name\": \"final_result_FlightDetails\", \"parameters_json_schema\": {\"properties\": {\"flight_number\": {\"type\": \"string\"}}, \"required\": [\"flight_number\"], \"type\": \"object\", \"additionalProperties\": false}, \"description\": \"FlightDetails: The final response which ends this conversation\", \"outer_typed_dict_key\": null, \"strict\": true, \"sequential\": false, \"kind\": \"output\", \"metadata\": null}, {\"name\": \"final_result_Failed\", \"parameters_json_schema\": {\"properties\": {}, \"type\": \"object\", \"additionalProperties\": false}, \"description\": \"Unable to find a satisfactory choice.\", \"outer_typed_dict_key\": null, \"strict\": false, \"sequential\": false, \"kind\": \"output\", \"metadata\": null}], \"prompted_output_template\": null, \"allow_text_output\": false, \"allow_image_output\": false}",
|
|
164
|
-
"gen_ai.input.messages": "[{\"role\": \"system\", \"parts\": [{\"type\": \"text\", \"content\": \"Use the \\\"flight_search\\\" tool to find a flight from the given origin to the given destination.\"}]}, {\"role\": \"user\", \"parts\": [{\"type\": \"text\", \"content\": \"a to b\"}]}, {\"role\": \"assistant\", \"parts\": [{\"type\": \"tool_call\", \"id\": \"call_xO7WglVgkyVVXegPvpSEBrkC\", \"name\": \"flight_search\", \"arguments\": \"{\\\"origin\\\":\\\"a\\\",\\\"destination\\\":\\\"b\\\"}\"}], \"finish_reason\": \"tool_call\"}, {\"role\": \"user\", \"parts\": [{\"type\": \"tool_call_response\", \"id\": \"call_xO7WglVgkyVVXegPvpSEBrkC\", \"name\": \"flight_search\", \"result\": {\"flight_number\": \"AK456\"}}]}]",
|
|
165
|
-
"gen_ai.output.messages": "[{\"role\": \"assistant\", \"parts\": [{\"type\": \"tool_call\", \"id\": \"call_etx5y2jcVC1sllSUid9LENEA\", \"name\": \"final_result_FlightDetails\", \"arguments\": \"{\\\"flight_number\\\":\\\"AK456\\\"}\"}], \"finish_reason\": \"tool_call\"}]",
|
|
166
|
-
"logfire.json_schema": "{\"type\": \"object\", \"properties\": {\"gen_ai.input.messages\": {\"type\": \"array\"}, \"gen_ai.output.messages\": {\"type\": \"array\"}, \"model_request_parameters\": {\"type\": \"object\"}}}",
|
|
167
|
-
"gen_ai.usage.input_tokens": 143,
|
|
168
|
-
"gen_ai.usage.output_tokens": 19,
|
|
169
|
-
"gen_ai.response.model": "gpt-4o-mini-2024-07-18",
|
|
170
|
-
"operation.cost": 3.285e-05,
|
|
171
|
-
"gen_ai.response.id": "chatcmpl-Cg9jiHfoF3xdsNHtg2pdKRbtAEjAq",
|
|
172
|
-
"gen_ai.response.finish_reasons": [
|
|
173
|
-
"tool_call"
|
|
174
|
-
],
|
|
175
|
-
"openinference.span.kind": "LLM",
|
|
176
|
-
"llm.system": "openai",
|
|
177
|
-
"llm.model_name": "gpt-4o-mini",
|
|
178
|
-
"llm.token_count.prompt": 143,
|
|
179
|
-
"llm.token_count.completion": 19,
|
|
180
|
-
"llm.token_count.total": 162,
|
|
181
|
-
"llm.tools.0.tool.name": "final_result_FlightDetails",
|
|
182
|
-
"llm.tools.0.tool.description": "FlightDetails: The final response which ends this conversation",
|
|
183
|
-
"llm.tools.1.tool.name": "final_result_Failed",
|
|
184
|
-
"llm.tools.1.tool.description": "Unable to find a satisfactory choice.",
|
|
185
|
-
"llm.input_messages.0.message.content": "Use the \"flight_search\" tool to find a flight from the given origin to the given destination.",
|
|
186
|
-
"llm.input_messages.0.message.role": "system",
|
|
187
|
-
"llm.input_messages.1.message.content": "a to b",
|
|
188
|
-
"llm.input_messages.1.message.role": "user",
|
|
189
|
-
"llm.input_messages.2.message.tool_calls.0.tool_call.function.name": "flight_search",
|
|
190
|
-
"llm.input_messages.2.message.tool_calls.0.tool_call.function.arguments": "{\"origin\":\"a\",\"destination\":\"b\"}",
|
|
191
|
-
"llm.input_messages.2.message.tool_calls.0.tool_call.id": "call_xO7WglVgkyVVXegPvpSEBrkC",
|
|
192
|
-
"llm.input_messages.2.message.role": "assistant",
|
|
193
|
-
"llm.input_messages.3.message.content": {
|
|
194
|
-
"flight_number": "AK456"
|
|
195
|
-
},
|
|
196
|
-
"llm.input_messages.3.message.tool_call_id": "call_xO7WglVgkyVVXegPvpSEBrkC",
|
|
197
|
-
"llm.input_messages.3.message.role": "tool",
|
|
198
|
-
"input.value": "a to b",
|
|
199
|
-
"llm.output_messages.0.message.role": "assistant",
|
|
200
|
-
"llm.output_messages.0.message.tool_calls.0.tool_call.function.name": "final_result_FlightDetails",
|
|
201
|
-
"llm.output_messages.0.message.tool_calls.0.tool_call.function.arguments": "{\"flight_number\":\"AK456\"}",
|
|
202
|
-
"llm.output_messages.0.message.tool_calls.0.tool_call.id": "call_etx5y2jcVC1sllSUid9LENEA"
|
|
203
|
-
},
|
|
204
|
-
"events": [],
|
|
205
|
-
"links": [],
|
|
206
|
-
"resource": {
|
|
207
|
-
"attributes": {
|
|
208
|
-
"telemetry.sdk.language": "python",
|
|
209
|
-
"telemetry.sdk.name": "opentelemetry",
|
|
210
|
-
"telemetry.sdk.version": "1.38.0",
|
|
211
|
-
"service.name": "banking-support-agent",
|
|
212
|
-
"service.version": "1.0.0",
|
|
213
|
-
"openinference.project.name": "banking-support-agent"
|
|
214
|
-
},
|
|
215
|
-
"schema_url": ""
|
|
216
|
-
}
|
|
217
|
-
},
|
|
218
|
-
{
|
|
219
|
-
"name": "agent run",
|
|
220
|
-
"context": {
|
|
221
|
-
"trace_id": "0xd597e9f1999aa5df79fdc62acb27043e",
|
|
222
|
-
"span_id": "0x7298b3026aaad838",
|
|
223
|
-
"trace_state": "[]"
|
|
224
|
-
},
|
|
225
|
-
"kind": "SpanKind.INTERNAL",
|
|
226
|
-
"parent_id": "0x49982376ca6cb326",
|
|
227
|
-
"start_time": "2025-11-26T13:20:37.065908Z",
|
|
228
|
-
"end_time": "2025-11-26T13:20:39.148738Z",
|
|
229
|
-
"status": {
|
|
230
|
-
"status_code": "UNSET"
|
|
231
|
-
},
|
|
232
|
-
"attributes": {
|
|
233
|
-
"model_name": "gpt-4o-mini",
|
|
234
|
-
"agent_name": "flight_search_agent",
|
|
235
|
-
"gen_ai.agent.name": "flight_search_agent",
|
|
236
|
-
"logfire.msg": "flight_search_agent run",
|
|
237
|
-
"final_result": "{\"flight_number\": \"AK456\"}",
|
|
238
|
-
"gen_ai.usage.input_tokens": 253,
|
|
239
|
-
"gen_ai.usage.output_tokens": 37,
|
|
240
|
-
"pydantic_ai.all_messages": "[{\"role\": \"system\", \"parts\": [{\"type\": \"text\", \"content\": \"Use the \\\"flight_search\\\" tool to find a flight from the given origin to the given destination.\"}]}, {\"role\": \"user\", \"parts\": [{\"type\": \"text\", \"content\": \"a to b\"}]}, {\"role\": \"assistant\", \"parts\": [{\"type\": \"tool_call\", \"id\": \"call_xO7WglVgkyVVXegPvpSEBrkC\", \"name\": \"flight_search\", \"arguments\": \"{\\\"origin\\\":\\\"a\\\",\\\"destination\\\":\\\"b\\\"}\"}], \"finish_reason\": \"tool_call\"}, {\"role\": \"user\", \"parts\": [{\"type\": \"tool_call_response\", \"id\": \"call_xO7WglVgkyVVXegPvpSEBrkC\", \"name\": \"flight_search\", \"result\": {\"flight_number\": \"AK456\"}}]}, {\"role\": \"assistant\", \"parts\": [{\"type\": \"tool_call\", \"id\": \"call_etx5y2jcVC1sllSUid9LENEA\", \"name\": \"final_result_FlightDetails\", \"arguments\": \"{\\\"flight_number\\\":\\\"AK456\\\"}\"}], \"finish_reason\": \"tool_call\"}, {\"role\": \"user\", \"parts\": [{\"type\": \"tool_call_response\", \"id\": \"call_etx5y2jcVC1sllSUid9LENEA\", \"name\": \"final_result_FlightDetails\", \"result\": \"Final result processed.\"}]}]",
|
|
241
|
-
"logfire.json_schema": "{\"type\": \"object\", \"properties\": {\"pydantic_ai.all_messages\": {\"type\": \"array\"}, \"final_result\": {\"type\": \"object\"}}}",
|
|
242
|
-
"output.value": "{\"flight_number\": \"AK456\"}",
|
|
243
|
-
"input.value": "a to b",
|
|
244
|
-
"openinference.span.kind": "AGENT"
|
|
245
|
-
},
|
|
246
|
-
"events": [],
|
|
247
|
-
"links": [],
|
|
248
|
-
"resource": {
|
|
249
|
-
"attributes": {
|
|
250
|
-
"telemetry.sdk.language": "python",
|
|
251
|
-
"telemetry.sdk.name": "opentelemetry",
|
|
252
|
-
"telemetry.sdk.version": "1.38.0",
|
|
253
|
-
"service.name": "banking-support-agent",
|
|
254
|
-
"service.version": "1.0.0",
|
|
255
|
-
"openinference.project.name": "banking-support-agent"
|
|
256
|
-
},
|
|
257
|
-
"schema_url": ""
|
|
258
|
-
}
|
|
259
|
-
},
|
|
260
|
-
{
|
|
261
|
-
"name": "chat gpt-4o-mini",
|
|
262
|
-
"context": {
|
|
263
|
-
"trace_id": "0xd597e9f1999aa5df79fdc62acb27043e",
|
|
264
|
-
"span_id": "0x50c91e71394f01e8",
|
|
265
|
-
"trace_state": "[]"
|
|
266
|
-
},
|
|
267
|
-
"kind": "SpanKind.INTERNAL",
|
|
268
|
-
"parent_id": "0x6c932ecf063626d6",
|
|
269
|
-
"start_time": "2025-11-26T13:20:40.019186Z",
|
|
270
|
-
"end_time": "2025-11-26T13:20:41.009451Z",
|
|
271
|
-
"status": {
|
|
272
|
-
"status_code": "UNSET"
|
|
273
|
-
},
|
|
274
|
-
"attributes": {
|
|
275
|
-
"gen_ai.operation.name": "chat",
|
|
276
|
-
"gen_ai.system": "openai",
|
|
277
|
-
"gen_ai.request.model": "gpt-4o-mini",
|
|
278
|
-
"server.address": "api.openai.com",
|
|
279
|
-
"model_request_parameters": "{\"function_tools\": [], \"builtin_tools\": [], \"output_mode\": \"tool\", \"output_object\": null, \"output_tools\": [{\"name\": \"final_result_SeatPreference\", \"parameters_json_schema\": {\"properties\": {\"row\": {\"maximum\": 30, \"minimum\": 1, \"type\": \"integer\"}, \"seat\": {\"enum\": [\"A\", \"B\", \"C\", \"D\", \"E\", \"F\"], \"type\": \"string\"}}, \"required\": [\"row\", \"seat\"], \"type\": \"object\", \"additionalProperties\": false}, \"description\": \"SeatPreference: The final response which ends this conversation\", \"outer_typed_dict_key\": null, \"strict\": true, \"sequential\": false, \"kind\": \"output\", \"metadata\": null}, {\"name\": \"final_result_Failed\", \"parameters_json_schema\": {\"properties\": {}, \"type\": \"object\", \"additionalProperties\": false}, \"description\": \"Unable to find a satisfactory choice.\", \"outer_typed_dict_key\": null, \"strict\": false, \"sequential\": false, \"kind\": \"output\", \"metadata\": null}], \"prompted_output_template\": null, \"allow_text_output\": false, \"allow_image_output\": false}",
|
|
280
|
-
"gen_ai.input.messages": "[{\"role\": \"system\", \"parts\": [{\"type\": \"text\", \"content\": \"Extract the user's seat preference. Seats A and F are window seats. Row 1 is the front row and has extra leg room. Rows 14, and 20 also have extra leg room. \"}]}, {\"role\": \"user\", \"parts\": [{\"type\": \"text\", \"content\": \"row=1 seat='A'\"}]}]",
|
|
281
|
-
"gen_ai.output.messages": "[{\"role\": \"assistant\", \"parts\": [{\"type\": \"tool_call\", \"id\": \"call_atMtOs04rem9a5DsMQmzYENp\", \"name\": \"final_result_SeatPreference\", \"arguments\": \"{\\\"row\\\":1,\\\"seat\\\":\\\"A\\\"}\"}], \"finish_reason\": \"tool_call\"}]",
|
|
282
|
-
"logfire.json_schema": "{\"type\": \"object\", \"properties\": {\"gen_ai.input.messages\": {\"type\": \"array\"}, \"gen_ai.output.messages\": {\"type\": \"array\"}, \"model_request_parameters\": {\"type\": \"object\"}}}",
|
|
283
|
-
"gen_ai.usage.input_tokens": 153,
|
|
284
|
-
"gen_ai.usage.output_tokens": 21,
|
|
285
|
-
"gen_ai.response.model": "gpt-4o-mini-2024-07-18",
|
|
286
|
-
"operation.cost": 3.555e-05,
|
|
287
|
-
"gen_ai.response.id": "chatcmpl-Cg9jktx6iQk6PahqdIVXS0s8M0OCT",
|
|
288
|
-
"gen_ai.response.finish_reasons": [
|
|
289
|
-
"tool_call"
|
|
290
|
-
],
|
|
291
|
-
"openinference.span.kind": "LLM",
|
|
292
|
-
"llm.system": "openai",
|
|
293
|
-
"llm.model_name": "gpt-4o-mini",
|
|
294
|
-
"llm.token_count.prompt": 153,
|
|
295
|
-
"llm.token_count.completion": 21,
|
|
296
|
-
"llm.token_count.total": 174,
|
|
297
|
-
"llm.tools.0.tool.name": "final_result_SeatPreference",
|
|
298
|
-
"llm.tools.0.tool.description": "SeatPreference: The final response which ends this conversation",
|
|
299
|
-
"llm.tools.1.tool.name": "final_result_Failed",
|
|
300
|
-
"llm.tools.1.tool.description": "Unable to find a satisfactory choice.",
|
|
301
|
-
"llm.input_messages.0.message.content": "Extract the user's seat preference. Seats A and F are window seats. Row 1 is the front row and has extra leg room. Rows 14, and 20 also have extra leg room. ",
|
|
302
|
-
"llm.input_messages.0.message.role": "system",
|
|
303
|
-
"llm.input_messages.1.message.content": "row=1 seat='A'",
|
|
304
|
-
"llm.input_messages.1.message.role": "user",
|
|
305
|
-
"input.value": "row=1 seat='A'",
|
|
306
|
-
"llm.output_messages.0.message.role": "assistant",
|
|
307
|
-
"llm.output_messages.0.message.tool_calls.0.tool_call.function.name": "final_result_SeatPreference",
|
|
308
|
-
"llm.output_messages.0.message.tool_calls.0.tool_call.function.arguments": "{\"row\":1,\"seat\":\"A\"}",
|
|
309
|
-
"llm.output_messages.0.message.tool_calls.0.tool_call.id": "call_atMtOs04rem9a5DsMQmzYENp"
|
|
310
|
-
},
|
|
311
|
-
"events": [],
|
|
312
|
-
"links": [],
|
|
313
|
-
"resource": {
|
|
314
|
-
"attributes": {
|
|
315
|
-
"telemetry.sdk.language": "python",
|
|
316
|
-
"telemetry.sdk.name": "opentelemetry",
|
|
317
|
-
"telemetry.sdk.version": "1.38.0",
|
|
318
|
-
"service.name": "banking-support-agent",
|
|
319
|
-
"service.version": "1.0.0",
|
|
320
|
-
"openinference.project.name": "banking-support-agent"
|
|
321
|
-
},
|
|
322
|
-
"schema_url": ""
|
|
323
|
-
}
|
|
324
|
-
},
|
|
325
|
-
{
|
|
326
|
-
"name": "agent run",
|
|
327
|
-
"context": {
|
|
328
|
-
"trace_id": "0xd597e9f1999aa5df79fdc62acb27043e",
|
|
329
|
-
"span_id": "0x6c932ecf063626d6",
|
|
330
|
-
"trace_state": "[]"
|
|
331
|
-
},
|
|
332
|
-
"kind": "SpanKind.INTERNAL",
|
|
333
|
-
"parent_id": "0x49982376ca6cb326",
|
|
334
|
-
"start_time": "2025-11-26T13:20:40.018108Z",
|
|
335
|
-
"end_time": "2025-11-26T13:20:41.009873Z",
|
|
336
|
-
"status": {
|
|
337
|
-
"status_code": "UNSET"
|
|
338
|
-
},
|
|
339
|
-
"attributes": {
|
|
340
|
-
"model_name": "gpt-4o-mini",
|
|
341
|
-
"agent_name": "seat_preference_agent",
|
|
342
|
-
"gen_ai.agent.name": "seat_preference_agent",
|
|
343
|
-
"logfire.msg": "seat_preference_agent run",
|
|
344
|
-
"final_result": "{\"row\": 1, \"seat\": \"A\"}",
|
|
345
|
-
"gen_ai.usage.input_tokens": 406,
|
|
346
|
-
"gen_ai.usage.output_tokens": 58,
|
|
347
|
-
"pydantic_ai.all_messages": "[{\"role\": \"system\", \"parts\": [{\"type\": \"text\", \"content\": \"Extract the user's seat preference. Seats A and F are window seats. Row 1 is the front row and has extra leg room. Rows 14, and 20 also have extra leg room. \"}]}, {\"role\": \"user\", \"parts\": [{\"type\": \"text\", \"content\": \"row=1 seat='A'\"}]}, {\"role\": \"assistant\", \"parts\": [{\"type\": \"tool_call\", \"id\": \"call_atMtOs04rem9a5DsMQmzYENp\", \"name\": \"final_result_SeatPreference\", \"arguments\": \"{\\\"row\\\":1,\\\"seat\\\":\\\"A\\\"}\"}], \"finish_reason\": \"tool_call\"}, {\"role\": \"user\", \"parts\": [{\"type\": \"tool_call_response\", \"id\": \"call_atMtOs04rem9a5DsMQmzYENp\", \"name\": \"final_result_SeatPreference\", \"result\": \"Final result processed.\"}]}]",
|
|
348
|
-
"logfire.json_schema": "{\"type\": \"object\", \"properties\": {\"pydantic_ai.all_messages\": {\"type\": \"array\"}, \"final_result\": {\"type\": \"object\"}}}",
|
|
349
|
-
"output.value": "{\"row\": 1, \"seat\": \"A\"}",
|
|
350
|
-
"input.value": "row=1 seat='A'",
|
|
351
|
-
"openinference.span.kind": "AGENT"
|
|
352
|
-
},
|
|
353
|
-
"events": [],
|
|
354
|
-
"links": [],
|
|
355
|
-
"resource": {
|
|
356
|
-
"attributes": {
|
|
357
|
-
"telemetry.sdk.language": "python",
|
|
358
|
-
"telemetry.sdk.name": "opentelemetry",
|
|
359
|
-
"telemetry.sdk.version": "1.38.0",
|
|
360
|
-
"service.name": "banking-support-agent",
|
|
361
|
-
"service.version": "1.0.0",
|
|
362
|
-
"openinference.project.name": "banking-support-agent"
|
|
363
|
-
},
|
|
364
|
-
"schema_url": ""
|
|
365
|
-
}
|
|
366
|
-
},
|
|
367
|
-
{
|
|
368
|
-
"name": "quraite/testcase-1",
|
|
369
|
-
"context": {
|
|
370
|
-
"trace_id": "0xd597e9f1999aa5df79fdc62acb27043e",
|
|
371
|
-
"span_id": "0x49982376ca6cb326",
|
|
372
|
-
"trace_state": "[]"
|
|
373
|
-
},
|
|
374
|
-
"kind": "SpanKind.INTERNAL",
|
|
375
|
-
"parent_id": null,
|
|
376
|
-
"start_time": "2025-11-26T13:20:35.471961Z",
|
|
377
|
-
"end_time": "2025-11-26T13:20:41.009916Z",
|
|
378
|
-
"status": {
|
|
379
|
-
"status_code": "UNSET"
|
|
380
|
-
},
|
|
381
|
-
"attributes": {},
|
|
382
|
-
"events": [],
|
|
383
|
-
"links": [],
|
|
384
|
-
"resource": {
|
|
385
|
-
"attributes": {
|
|
386
|
-
"telemetry.sdk.language": "python",
|
|
387
|
-
"telemetry.sdk.name": "opentelemetry",
|
|
388
|
-
"telemetry.sdk.version": "1.38.0",
|
|
389
|
-
"service.name": "banking-support-agent",
|
|
390
|
-
"service.version": "1.0.0",
|
|
391
|
-
"openinference.project.name": "banking-support-agent"
|
|
392
|
-
},
|
|
393
|
-
"schema_url": ""
|
|
394
|
-
}
|
|
395
|
-
}
|
|
396
|
-
]
|
|
397
|
-
}
|
|
398
|
-
]
|