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,341 @@
|
|
|
1
|
+
[
|
|
2
|
+
{
|
|
3
|
+
"trace_id": "28932037",
|
|
4
|
+
"spans": [
|
|
5
|
+
{
|
|
6
|
+
"name": "response",
|
|
7
|
+
"context": {
|
|
8
|
+
"trace_id": "0x28932037164a7033018c1a5b2885c251",
|
|
9
|
+
"span_id": "0x35d977a2409b58d9",
|
|
10
|
+
"trace_state": "[]"
|
|
11
|
+
},
|
|
12
|
+
"kind": "SpanKind.INTERNAL",
|
|
13
|
+
"parent_id": "0x1f00f2f318be0e4d",
|
|
14
|
+
"start_time": "2025-11-27T09:36:30.638314Z",
|
|
15
|
+
"end_time": "2025-11-27T09:36:33.326815Z",
|
|
16
|
+
"status": {
|
|
17
|
+
"status_code": "OK"
|
|
18
|
+
},
|
|
19
|
+
"attributes": {
|
|
20
|
+
"llm.system": "openai",
|
|
21
|
+
"output.mime_type": "application/json",
|
|
22
|
+
"output.value": "{\"id\":\"resp_093cf976fb17046a0069281b9f04c88195b8c870039327b3a1\",\"created_at\":1764236191.0,\"error\":null,\"incomplete_details\":null,\"instructions\":\"You are a helpful assistant that can add, subtract, multiply, divide numbers using BODMAS rule.\",\"metadata\":{},\"model\":\"gpt-4o-mini-2024-07-18\",\"object\":\"response\",\"output\":[{\"arguments\":\"{\\\"a\\\":10,\\\"b\\\":2}\",\"call_id\":\"call_rpGUyUZ9rJf02gaa3gW6mq16\",\"name\":\"multiply\",\"type\":\"function_call\",\"id\":\"fc_093cf976fb17046a0069281b9f6140819597988ff49e1e0208\",\"status\":\"completed\"}],\"parallel_tool_calls\":true,\"temperature\":1.0,\"tool_choice\":\"auto\",\"tools\":[{\"name\":\"add\",\"parameters\":{\"properties\":{\"a\":{\"title\":\"A\",\"type\":\"number\"},\"b\":{\"title\":\"B\",\"type\":\"number\"}},\"required\":[\"a\",\"b\"],\"title\":\"add_args\",\"type\":\"object\",\"additionalProperties\":false},\"strict\":true,\"type\":\"function\",\"description\":null},{\"name\":\"multiply\",\"parameters\":{\"properties\":{\"a\":{\"title\":\"A\",\"type\":\"number\"},\"b\":{\"title\":\"B\",\"type\":\"number\"}},\"required\":[\"a\",\"b\"],\"title\":\"multiply_args\",\"type\":\"object\",\"additionalProperties\":false},\"strict\":true,\"type\":\"function\",\"description\":null},{\"name\":\"subtract\",\"parameters\":{\"properties\":{\"a\":{\"title\":\"A\",\"type\":\"number\"},\"b\":{\"title\":\"B\",\"type\":\"number\"}},\"required\":[\"a\",\"b\"],\"title\":\"subtract_args\",\"type\":\"object\",\"additionalProperties\":false},\"strict\":true,\"type\":\"function\",\"description\":null},{\"name\":\"divide\",\"parameters\":{\"properties\":{\"a\":{\"title\":\"A\",\"type\":\"number\"},\"b\":{\"title\":\"B\",\"type\":\"number\"}},\"required\":[\"a\",\"b\"],\"title\":\"divide_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\":157,\"input_tokens_details\":{\"cached_tokens\":0},\"output_tokens\":18,\"output_tokens_details\":{\"reasoning_tokens\":0},\"total_tokens\":175},\"user\":null,\"billing\":{\"payer\":\"developer\"},\"prompt_cache_retention\":null,\"store\":true}",
|
|
23
|
+
"llm.tools.0.tool.json_schema": "{\"type\": \"function\", \"function\": {\"name\": \"add\", \"description\": null, \"parameters\": {\"properties\": {\"a\": {\"title\": \"A\", \"type\": \"number\"}, \"b\": {\"title\": \"B\", \"type\": \"number\"}}, \"required\": [\"a\", \"b\"], \"title\": \"add_args\", \"type\": \"object\", \"additionalProperties\": false}, \"strict\": true}}",
|
|
24
|
+
"llm.tools.1.tool.json_schema": "{\"type\": \"function\", \"function\": {\"name\": \"multiply\", \"description\": null, \"parameters\": {\"properties\": {\"a\": {\"title\": \"A\", \"type\": \"number\"}, \"b\": {\"title\": \"B\", \"type\": \"number\"}}, \"required\": [\"a\", \"b\"], \"title\": \"multiply_args\", \"type\": \"object\", \"additionalProperties\": false}, \"strict\": true}}",
|
|
25
|
+
"llm.tools.2.tool.json_schema": "{\"type\": \"function\", \"function\": {\"name\": \"subtract\", \"description\": null, \"parameters\": {\"properties\": {\"a\": {\"title\": \"A\", \"type\": \"number\"}, \"b\": {\"title\": \"B\", \"type\": \"number\"}}, \"required\": [\"a\", \"b\"], \"title\": \"subtract_args\", \"type\": \"object\", \"additionalProperties\": false}, \"strict\": true}}",
|
|
26
|
+
"llm.tools.3.tool.json_schema": "{\"type\": \"function\", \"function\": {\"name\": \"divide\", \"description\": null, \"parameters\": {\"properties\": {\"a\": {\"title\": \"A\", \"type\": \"number\"}, \"b\": {\"title\": \"B\", \"type\": \"number\"}}, \"required\": [\"a\", \"b\"], \"title\": \"divide_args\", \"type\": \"object\", \"additionalProperties\": false}, \"strict\": true}}",
|
|
27
|
+
"llm.token_count.completion": 18,
|
|
28
|
+
"llm.token_count.prompt": 157,
|
|
29
|
+
"llm.token_count.total": 175,
|
|
30
|
+
"llm.token_count.prompt_details.cache_read": 0,
|
|
31
|
+
"llm.token_count.completion_details.reasoning": 0,
|
|
32
|
+
"llm.output_messages.0.message.role": "assistant",
|
|
33
|
+
"llm.output_messages.0.message.tool_calls.0.tool_call.id": "call_rpGUyUZ9rJf02gaa3gW6mq16",
|
|
34
|
+
"llm.output_messages.0.message.tool_calls.0.tool_call.function.name": "multiply",
|
|
35
|
+
"llm.output_messages.0.message.tool_calls.0.tool_call.function.arguments": "{\"a\":10,\"b\":2}",
|
|
36
|
+
"llm.input_messages.0.message.role": "system",
|
|
37
|
+
"llm.input_messages.0.message.content": "You are a helpful assistant that can add, subtract, multiply, divide numbers using BODMAS rule.",
|
|
38
|
+
"llm.model_name": "gpt-4o-mini-2024-07-18",
|
|
39
|
+
"llm.invocation_parameters": "{\"id\": \"resp_093cf976fb17046a0069281b9f04c88195b8c870039327b3a1\", \"created_at\": 1764236191.0, \"instructions\": \"You are a helpful assistant that can add, subtract, multiply, divide numbers using BODMAS rule.\", \"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}",
|
|
40
|
+
"input.mime_type": "application/json",
|
|
41
|
+
"input.value": "[{\"content\": \"What is 10 + 10 * 2?\", \"role\": \"user\"}]",
|
|
42
|
+
"llm.input_messages.1.message.role": "user",
|
|
43
|
+
"llm.input_messages.1.message.content": "What is 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": "multiply",
|
|
60
|
+
"context": {
|
|
61
|
+
"trace_id": "0x28932037164a7033018c1a5b2885c251",
|
|
62
|
+
"span_id": "0xaf2e27a367df1c07",
|
|
63
|
+
"trace_state": "[]"
|
|
64
|
+
},
|
|
65
|
+
"kind": "SpanKind.INTERNAL",
|
|
66
|
+
"parent_id": "0x1f00f2f318be0e4d",
|
|
67
|
+
"start_time": "2025-11-27T09:36:33.327600Z",
|
|
68
|
+
"end_time": "2025-11-27T09:36:33.327910Z",
|
|
69
|
+
"status": {
|
|
70
|
+
"status_code": "OK"
|
|
71
|
+
},
|
|
72
|
+
"attributes": {
|
|
73
|
+
"llm.system": "openai",
|
|
74
|
+
"tool.name": "multiply",
|
|
75
|
+
"input.value": "{\"a\":10,\"b\":2}",
|
|
76
|
+
"input.mime_type": "application/json",
|
|
77
|
+
"output.value": 20.0,
|
|
78
|
+
"openinference.span.kind": "TOOL"
|
|
79
|
+
},
|
|
80
|
+
"events": [],
|
|
81
|
+
"links": [],
|
|
82
|
+
"resource": {
|
|
83
|
+
"attributes": {
|
|
84
|
+
"telemetry.sdk.language": "python",
|
|
85
|
+
"telemetry.sdk.name": "opentelemetry",
|
|
86
|
+
"telemetry.sdk.version": "1.38.0",
|
|
87
|
+
"service.name": "unknown_service"
|
|
88
|
+
},
|
|
89
|
+
"schema_url": ""
|
|
90
|
+
}
|
|
91
|
+
},
|
|
92
|
+
{
|
|
93
|
+
"name": "response",
|
|
94
|
+
"context": {
|
|
95
|
+
"trace_id": "0x28932037164a7033018c1a5b2885c251",
|
|
96
|
+
"span_id": "0xae6f97d9732ea0bb",
|
|
97
|
+
"trace_state": "[]"
|
|
98
|
+
},
|
|
99
|
+
"kind": "SpanKind.INTERNAL",
|
|
100
|
+
"parent_id": "0x1f00f2f318be0e4d",
|
|
101
|
+
"start_time": "2025-11-27T09:36:33.328595Z",
|
|
102
|
+
"end_time": "2025-11-27T09:36:35.893114Z",
|
|
103
|
+
"status": {
|
|
104
|
+
"status_code": "OK"
|
|
105
|
+
},
|
|
106
|
+
"attributes": {
|
|
107
|
+
"llm.system": "openai",
|
|
108
|
+
"output.mime_type": "application/json",
|
|
109
|
+
"output.value": "{\"id\":\"resp_093cf976fb17046a0069281ba186988195b807018e88fbfc30\",\"created_at\":1764236193.0,\"error\":null,\"incomplete_details\":null,\"instructions\":\"You are a helpful assistant that can add, subtract, multiply, divide numbers using BODMAS rule.\",\"metadata\":{},\"model\":\"gpt-4o-mini-2024-07-18\",\"object\":\"response\",\"output\":[{\"arguments\":\"{\\\"a\\\":10,\\\"b\\\":20}\",\"call_id\":\"call_4402DVz25NywUJRZoqP1x18s\",\"name\":\"add\",\"type\":\"function_call\",\"id\":\"fc_093cf976fb17046a0069281ba1f614819593a6824964a6d4a2\",\"status\":\"completed\"}],\"parallel_tool_calls\":true,\"temperature\":1.0,\"tool_choice\":\"auto\",\"tools\":[{\"name\":\"add\",\"parameters\":{\"properties\":{\"a\":{\"title\":\"A\",\"type\":\"number\"},\"b\":{\"title\":\"B\",\"type\":\"number\"}},\"required\":[\"a\",\"b\"],\"title\":\"add_args\",\"type\":\"object\",\"additionalProperties\":false},\"strict\":true,\"type\":\"function\",\"description\":null},{\"name\":\"multiply\",\"parameters\":{\"properties\":{\"a\":{\"title\":\"A\",\"type\":\"number\"},\"b\":{\"title\":\"B\",\"type\":\"number\"}},\"required\":[\"a\",\"b\"],\"title\":\"multiply_args\",\"type\":\"object\",\"additionalProperties\":false},\"strict\":true,\"type\":\"function\",\"description\":null},{\"name\":\"subtract\",\"parameters\":{\"properties\":{\"a\":{\"title\":\"A\",\"type\":\"number\"},\"b\":{\"title\":\"B\",\"type\":\"number\"}},\"required\":[\"a\",\"b\"],\"title\":\"subtract_args\",\"type\":\"object\",\"additionalProperties\":false},\"strict\":true,\"type\":\"function\",\"description\":null},{\"name\":\"divide\",\"parameters\":{\"properties\":{\"a\":{\"title\":\"A\",\"type\":\"number\"},\"b\":{\"title\":\"B\",\"type\":\"number\"}},\"required\":[\"a\",\"b\"],\"title\":\"divide_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\":185,\"input_tokens_details\":{\"cached_tokens\":0},\"output_tokens\":18,\"output_tokens_details\":{\"reasoning_tokens\":0},\"total_tokens\":203},\"user\":null,\"billing\":{\"payer\":\"developer\"},\"prompt_cache_retention\":null,\"store\":true}",
|
|
110
|
+
"llm.tools.0.tool.json_schema": "{\"type\": \"function\", \"function\": {\"name\": \"add\", \"description\": null, \"parameters\": {\"properties\": {\"a\": {\"title\": \"A\", \"type\": \"number\"}, \"b\": {\"title\": \"B\", \"type\": \"number\"}}, \"required\": [\"a\", \"b\"], \"title\": \"add_args\", \"type\": \"object\", \"additionalProperties\": false}, \"strict\": true}}",
|
|
111
|
+
"llm.tools.1.tool.json_schema": "{\"type\": \"function\", \"function\": {\"name\": \"multiply\", \"description\": null, \"parameters\": {\"properties\": {\"a\": {\"title\": \"A\", \"type\": \"number\"}, \"b\": {\"title\": \"B\", \"type\": \"number\"}}, \"required\": [\"a\", \"b\"], \"title\": \"multiply_args\", \"type\": \"object\", \"additionalProperties\": false}, \"strict\": true}}",
|
|
112
|
+
"llm.tools.2.tool.json_schema": "{\"type\": \"function\", \"function\": {\"name\": \"subtract\", \"description\": null, \"parameters\": {\"properties\": {\"a\": {\"title\": \"A\", \"type\": \"number\"}, \"b\": {\"title\": \"B\", \"type\": \"number\"}}, \"required\": [\"a\", \"b\"], \"title\": \"subtract_args\", \"type\": \"object\", \"additionalProperties\": false}, \"strict\": true}}",
|
|
113
|
+
"llm.tools.3.tool.json_schema": "{\"type\": \"function\", \"function\": {\"name\": \"divide\", \"description\": null, \"parameters\": {\"properties\": {\"a\": {\"title\": \"A\", \"type\": \"number\"}, \"b\": {\"title\": \"B\", \"type\": \"number\"}}, \"required\": [\"a\", \"b\"], \"title\": \"divide_args\", \"type\": \"object\", \"additionalProperties\": false}, \"strict\": true}}",
|
|
114
|
+
"llm.token_count.completion": 18,
|
|
115
|
+
"llm.token_count.prompt": 185,
|
|
116
|
+
"llm.token_count.total": 203,
|
|
117
|
+
"llm.token_count.prompt_details.cache_read": 0,
|
|
118
|
+
"llm.token_count.completion_details.reasoning": 0,
|
|
119
|
+
"llm.output_messages.0.message.role": "assistant",
|
|
120
|
+
"llm.output_messages.0.message.tool_calls.0.tool_call.id": "call_4402DVz25NywUJRZoqP1x18s",
|
|
121
|
+
"llm.output_messages.0.message.tool_calls.0.tool_call.function.name": "add",
|
|
122
|
+
"llm.output_messages.0.message.tool_calls.0.tool_call.function.arguments": "{\"a\":10,\"b\":20}",
|
|
123
|
+
"llm.input_messages.0.message.role": "system",
|
|
124
|
+
"llm.input_messages.0.message.content": "You are a helpful assistant that can add, subtract, multiply, divide numbers using BODMAS rule.",
|
|
125
|
+
"llm.model_name": "gpt-4o-mini-2024-07-18",
|
|
126
|
+
"llm.invocation_parameters": "{\"id\": \"resp_093cf976fb17046a0069281ba186988195b807018e88fbfc30\", \"created_at\": 1764236193.0, \"instructions\": \"You are a helpful assistant that can add, subtract, multiply, divide numbers using BODMAS rule.\", \"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}",
|
|
127
|
+
"input.mime_type": "application/json",
|
|
128
|
+
"input.value": "[{\"content\": \"What is 10 + 10 * 2?\", \"role\": \"user\"}, {\"arguments\": \"{\\\"a\\\":10,\\\"b\\\":2}\", \"call_id\": \"call_rpGUyUZ9rJf02gaa3gW6mq16\", \"name\": \"multiply\", \"type\": \"function_call\", \"id\": \"fc_093cf976fb17046a0069281b9f6140819597988ff49e1e0208\", \"status\": \"completed\"}, {\"call_id\": \"call_rpGUyUZ9rJf02gaa3gW6mq16\", \"output\": \"20.0\", \"type\": \"function_call_output\"}]",
|
|
129
|
+
"llm.input_messages.1.message.role": "user",
|
|
130
|
+
"llm.input_messages.1.message.content": "What is 10 + 10 * 2?",
|
|
131
|
+
"llm.input_messages.2.message.role": "assistant",
|
|
132
|
+
"llm.input_messages.2.message.tool_calls.0.tool_call.id": "call_rpGUyUZ9rJf02gaa3gW6mq16",
|
|
133
|
+
"llm.input_messages.2.message.tool_calls.0.tool_call.function.name": "multiply",
|
|
134
|
+
"llm.input_messages.2.message.tool_calls.0.tool_call.function.arguments": "{\"a\":10,\"b\":2}",
|
|
135
|
+
"llm.input_messages.3.message.role": "tool",
|
|
136
|
+
"llm.input_messages.3.message.tool_call_id": "call_rpGUyUZ9rJf02gaa3gW6mq16",
|
|
137
|
+
"llm.input_messages.3.message.content": "20.0",
|
|
138
|
+
"openinference.span.kind": "LLM"
|
|
139
|
+
},
|
|
140
|
+
"events": [],
|
|
141
|
+
"links": [],
|
|
142
|
+
"resource": {
|
|
143
|
+
"attributes": {
|
|
144
|
+
"telemetry.sdk.language": "python",
|
|
145
|
+
"telemetry.sdk.name": "opentelemetry",
|
|
146
|
+
"telemetry.sdk.version": "1.38.0",
|
|
147
|
+
"service.name": "unknown_service"
|
|
148
|
+
},
|
|
149
|
+
"schema_url": ""
|
|
150
|
+
}
|
|
151
|
+
},
|
|
152
|
+
{
|
|
153
|
+
"name": "add",
|
|
154
|
+
"context": {
|
|
155
|
+
"trace_id": "0x28932037164a7033018c1a5b2885c251",
|
|
156
|
+
"span_id": "0x1ec937678671288c",
|
|
157
|
+
"trace_state": "[]"
|
|
158
|
+
},
|
|
159
|
+
"kind": "SpanKind.INTERNAL",
|
|
160
|
+
"parent_id": "0x1f00f2f318be0e4d",
|
|
161
|
+
"start_time": "2025-11-27T09:36:35.894532Z",
|
|
162
|
+
"end_time": "2025-11-27T09:36:35.895127Z",
|
|
163
|
+
"status": {
|
|
164
|
+
"status_code": "OK"
|
|
165
|
+
},
|
|
166
|
+
"attributes": {
|
|
167
|
+
"llm.system": "openai",
|
|
168
|
+
"tool.name": "add",
|
|
169
|
+
"input.value": "{\"a\":10,\"b\":20}",
|
|
170
|
+
"input.mime_type": "application/json",
|
|
171
|
+
"output.value": 30.0,
|
|
172
|
+
"openinference.span.kind": "TOOL"
|
|
173
|
+
},
|
|
174
|
+
"events": [],
|
|
175
|
+
"links": [],
|
|
176
|
+
"resource": {
|
|
177
|
+
"attributes": {
|
|
178
|
+
"telemetry.sdk.language": "python",
|
|
179
|
+
"telemetry.sdk.name": "opentelemetry",
|
|
180
|
+
"telemetry.sdk.version": "1.38.0",
|
|
181
|
+
"service.name": "unknown_service"
|
|
182
|
+
},
|
|
183
|
+
"schema_url": ""
|
|
184
|
+
}
|
|
185
|
+
},
|
|
186
|
+
{
|
|
187
|
+
"name": "response",
|
|
188
|
+
"context": {
|
|
189
|
+
"trace_id": "0x28932037164a7033018c1a5b2885c251",
|
|
190
|
+
"span_id": "0x7202e087d77affdf",
|
|
191
|
+
"trace_state": "[]"
|
|
192
|
+
},
|
|
193
|
+
"kind": "SpanKind.INTERNAL",
|
|
194
|
+
"parent_id": "0x1f00f2f318be0e4d",
|
|
195
|
+
"start_time": "2025-11-27T09:36:35.896058Z",
|
|
196
|
+
"end_time": "2025-11-27T09:36:38.905505Z",
|
|
197
|
+
"status": {
|
|
198
|
+
"status_code": "OK"
|
|
199
|
+
},
|
|
200
|
+
"attributes": {
|
|
201
|
+
"llm.system": "openai",
|
|
202
|
+
"output.mime_type": "application/json",
|
|
203
|
+
"output.value": "{\"id\":\"resp_093cf976fb17046a0069281ba482a88195b0cb5fe1473457df\",\"created_at\":1764236196.0,\"error\":null,\"incomplete_details\":null,\"instructions\":\"You are a helpful assistant that can add, subtract, multiply, divide numbers using BODMAS rule.\",\"metadata\":{},\"model\":\"gpt-4o-mini-2024-07-18\",\"object\":\"response\",\"output\":[{\"id\":\"msg_093cf976fb17046a0069281ba548a48195bebefb580c87e208\",\"content\":[{\"annotations\":[],\"text\":\"The result of \\\\(10 + 10 \\\\times 2\\\\) is \\\\(30\\\\).\",\"type\":\"output_text\",\"logprobs\":[]}],\"role\":\"assistant\",\"status\":\"completed\",\"type\":\"message\"}],\"parallel_tool_calls\":true,\"temperature\":1.0,\"tool_choice\":\"auto\",\"tools\":[{\"name\":\"add\",\"parameters\":{\"properties\":{\"a\":{\"title\":\"A\",\"type\":\"number\"},\"b\":{\"title\":\"B\",\"type\":\"number\"}},\"required\":[\"a\",\"b\"],\"title\":\"add_args\",\"type\":\"object\",\"additionalProperties\":false},\"strict\":true,\"type\":\"function\",\"description\":null},{\"name\":\"multiply\",\"parameters\":{\"properties\":{\"a\":{\"title\":\"A\",\"type\":\"number\"},\"b\":{\"title\":\"B\",\"type\":\"number\"}},\"required\":[\"a\",\"b\"],\"title\":\"multiply_args\",\"type\":\"object\",\"additionalProperties\":false},\"strict\":true,\"type\":\"function\",\"description\":null},{\"name\":\"subtract\",\"parameters\":{\"properties\":{\"a\":{\"title\":\"A\",\"type\":\"number\"},\"b\":{\"title\":\"B\",\"type\":\"number\"}},\"required\":[\"a\",\"b\"],\"title\":\"subtract_args\",\"type\":\"object\",\"additionalProperties\":false},\"strict\":true,\"type\":\"function\",\"description\":null},{\"name\":\"divide\",\"parameters\":{\"properties\":{\"a\":{\"title\":\"A\",\"type\":\"number\"},\"b\":{\"title\":\"B\",\"type\":\"number\"}},\"required\":[\"a\",\"b\"],\"title\":\"divide_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\":213,\"input_tokens_details\":{\"cached_tokens\":0},\"output_tokens\":21,\"output_tokens_details\":{\"reasoning_tokens\":0},\"total_tokens\":234},\"user\":null,\"billing\":{\"payer\":\"developer\"},\"prompt_cache_retention\":null,\"store\":true}",
|
|
204
|
+
"llm.tools.0.tool.json_schema": "{\"type\": \"function\", \"function\": {\"name\": \"add\", \"description\": null, \"parameters\": {\"properties\": {\"a\": {\"title\": \"A\", \"type\": \"number\"}, \"b\": {\"title\": \"B\", \"type\": \"number\"}}, \"required\": [\"a\", \"b\"], \"title\": \"add_args\", \"type\": \"object\", \"additionalProperties\": false}, \"strict\": true}}",
|
|
205
|
+
"llm.tools.1.tool.json_schema": "{\"type\": \"function\", \"function\": {\"name\": \"multiply\", \"description\": null, \"parameters\": {\"properties\": {\"a\": {\"title\": \"A\", \"type\": \"number\"}, \"b\": {\"title\": \"B\", \"type\": \"number\"}}, \"required\": [\"a\", \"b\"], \"title\": \"multiply_args\", \"type\": \"object\", \"additionalProperties\": false}, \"strict\": true}}",
|
|
206
|
+
"llm.tools.2.tool.json_schema": "{\"type\": \"function\", \"function\": {\"name\": \"subtract\", \"description\": null, \"parameters\": {\"properties\": {\"a\": {\"title\": \"A\", \"type\": \"number\"}, \"b\": {\"title\": \"B\", \"type\": \"number\"}}, \"required\": [\"a\", \"b\"], \"title\": \"subtract_args\", \"type\": \"object\", \"additionalProperties\": false}, \"strict\": true}}",
|
|
207
|
+
"llm.tools.3.tool.json_schema": "{\"type\": \"function\", \"function\": {\"name\": \"divide\", \"description\": null, \"parameters\": {\"properties\": {\"a\": {\"title\": \"A\", \"type\": \"number\"}, \"b\": {\"title\": \"B\", \"type\": \"number\"}}, \"required\": [\"a\", \"b\"], \"title\": \"divide_args\", \"type\": \"object\", \"additionalProperties\": false}, \"strict\": true}}",
|
|
208
|
+
"llm.token_count.completion": 21,
|
|
209
|
+
"llm.token_count.prompt": 213,
|
|
210
|
+
"llm.token_count.total": 234,
|
|
211
|
+
"llm.token_count.prompt_details.cache_read": 0,
|
|
212
|
+
"llm.token_count.completion_details.reasoning": 0,
|
|
213
|
+
"llm.output_messages.0.message.role": "assistant",
|
|
214
|
+
"llm.output_messages.0.message.contents.0.message_content.type": "text",
|
|
215
|
+
"llm.output_messages.0.message.contents.0.message_content.text": "The result of \\(10 + 10 \\times 2\\) is \\(30\\).",
|
|
216
|
+
"llm.input_messages.0.message.role": "system",
|
|
217
|
+
"llm.input_messages.0.message.content": "You are a helpful assistant that can add, subtract, multiply, divide numbers using BODMAS rule.",
|
|
218
|
+
"llm.model_name": "gpt-4o-mini-2024-07-18",
|
|
219
|
+
"llm.invocation_parameters": "{\"id\": \"resp_093cf976fb17046a0069281ba482a88195b0cb5fe1473457df\", \"created_at\": 1764236196.0, \"instructions\": \"You are a helpful assistant that can add, subtract, multiply, divide numbers using BODMAS rule.\", \"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}",
|
|
220
|
+
"input.mime_type": "application/json",
|
|
221
|
+
"input.value": "[{\"content\": \"What is 10 + 10 * 2?\", \"role\": \"user\"}, {\"arguments\": \"{\\\"a\\\":10,\\\"b\\\":2}\", \"call_id\": \"call_rpGUyUZ9rJf02gaa3gW6mq16\", \"name\": \"multiply\", \"type\": \"function_call\", \"id\": \"fc_093cf976fb17046a0069281b9f6140819597988ff49e1e0208\", \"status\": \"completed\"}, {\"call_id\": \"call_rpGUyUZ9rJf02gaa3gW6mq16\", \"output\": \"20.0\", \"type\": \"function_call_output\"}, {\"arguments\": \"{\\\"a\\\":10,\\\"b\\\":20}\", \"call_id\": \"call_4402DVz25NywUJRZoqP1x18s\", \"name\": \"add\", \"type\": \"function_call\", \"id\": \"fc_093cf976fb17046a0069281ba1f614819593a6824964a6d4a2\", \"status\": \"completed\"}, {\"call_id\": \"call_4402DVz25NywUJRZoqP1x18s\", \"output\": \"30.0\", \"type\": \"function_call_output\"}]",
|
|
222
|
+
"llm.input_messages.1.message.role": "user",
|
|
223
|
+
"llm.input_messages.1.message.content": "What is 10 + 10 * 2?",
|
|
224
|
+
"llm.input_messages.2.message.role": "assistant",
|
|
225
|
+
"llm.input_messages.2.message.tool_calls.0.tool_call.id": "call_rpGUyUZ9rJf02gaa3gW6mq16",
|
|
226
|
+
"llm.input_messages.2.message.tool_calls.0.tool_call.function.name": "multiply",
|
|
227
|
+
"llm.input_messages.2.message.tool_calls.0.tool_call.function.arguments": "{\"a\":10,\"b\":2}",
|
|
228
|
+
"llm.input_messages.3.message.role": "tool",
|
|
229
|
+
"llm.input_messages.3.message.tool_call_id": "call_rpGUyUZ9rJf02gaa3gW6mq16",
|
|
230
|
+
"llm.input_messages.3.message.content": "20.0",
|
|
231
|
+
"llm.input_messages.4.message.role": "assistant",
|
|
232
|
+
"llm.input_messages.4.message.tool_calls.0.tool_call.id": "call_4402DVz25NywUJRZoqP1x18s",
|
|
233
|
+
"llm.input_messages.4.message.tool_calls.0.tool_call.function.name": "add",
|
|
234
|
+
"llm.input_messages.4.message.tool_calls.0.tool_call.function.arguments": "{\"a\":10,\"b\":20}",
|
|
235
|
+
"llm.input_messages.5.message.role": "tool",
|
|
236
|
+
"llm.input_messages.5.message.tool_call_id": "call_4402DVz25NywUJRZoqP1x18s",
|
|
237
|
+
"llm.input_messages.5.message.content": "30.0",
|
|
238
|
+
"openinference.span.kind": "LLM"
|
|
239
|
+
},
|
|
240
|
+
"events": [],
|
|
241
|
+
"links": [],
|
|
242
|
+
"resource": {
|
|
243
|
+
"attributes": {
|
|
244
|
+
"telemetry.sdk.language": "python",
|
|
245
|
+
"telemetry.sdk.name": "opentelemetry",
|
|
246
|
+
"telemetry.sdk.version": "1.38.0",
|
|
247
|
+
"service.name": "unknown_service"
|
|
248
|
+
},
|
|
249
|
+
"schema_url": ""
|
|
250
|
+
}
|
|
251
|
+
},
|
|
252
|
+
{
|
|
253
|
+
"name": "Flight Booking Agent",
|
|
254
|
+
"context": {
|
|
255
|
+
"trace_id": "0x28932037164a7033018c1a5b2885c251",
|
|
256
|
+
"span_id": "0x1f00f2f318be0e4d",
|
|
257
|
+
"trace_state": "[]"
|
|
258
|
+
},
|
|
259
|
+
"kind": "SpanKind.INTERNAL",
|
|
260
|
+
"parent_id": "0xee3f97967dc96d94",
|
|
261
|
+
"start_time": "2025-11-27T09:36:30.627272Z",
|
|
262
|
+
"end_time": "2025-11-27T09:36:38.906929Z",
|
|
263
|
+
"status": {
|
|
264
|
+
"status_code": "OK"
|
|
265
|
+
},
|
|
266
|
+
"attributes": {
|
|
267
|
+
"llm.system": "openai",
|
|
268
|
+
"graph.node.id": "Flight Booking Agent",
|
|
269
|
+
"openinference.span.kind": "AGENT"
|
|
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": "Agent workflow",
|
|
285
|
+
"context": {
|
|
286
|
+
"trace_id": "0x28932037164a7033018c1a5b2885c251",
|
|
287
|
+
"span_id": "0xee3f97967dc96d94",
|
|
288
|
+
"trace_state": "[]"
|
|
289
|
+
},
|
|
290
|
+
"kind": "SpanKind.INTERNAL",
|
|
291
|
+
"parent_id": "0x2e00f5307189778a",
|
|
292
|
+
"start_time": "2025-11-27T09:36:30.627024Z",
|
|
293
|
+
"end_time": "2025-11-27T09:36:38.907143Z",
|
|
294
|
+
"status": {
|
|
295
|
+
"status_code": "OK"
|
|
296
|
+
},
|
|
297
|
+
"attributes": {
|
|
298
|
+
"openinference.span.kind": "AGENT"
|
|
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": "quraite/testcase-1",
|
|
314
|
+
"context": {
|
|
315
|
+
"trace_id": "0x28932037164a7033018c1a5b2885c251",
|
|
316
|
+
"span_id": "0x2e00f5307189778a",
|
|
317
|
+
"trace_state": "[]"
|
|
318
|
+
},
|
|
319
|
+
"kind": "SpanKind.INTERNAL",
|
|
320
|
+
"parent_id": null,
|
|
321
|
+
"start_time": "2025-11-27T09:36:30.626759Z",
|
|
322
|
+
"end_time": "2025-11-27T09:36:38.908411Z",
|
|
323
|
+
"status": {
|
|
324
|
+
"status_code": "UNSET"
|
|
325
|
+
},
|
|
326
|
+
"attributes": {},
|
|
327
|
+
"events": [],
|
|
328
|
+
"links": [],
|
|
329
|
+
"resource": {
|
|
330
|
+
"attributes": {
|
|
331
|
+
"telemetry.sdk.language": "python",
|
|
332
|
+
"telemetry.sdk.name": "opentelemetry",
|
|
333
|
+
"telemetry.sdk.version": "1.38.0",
|
|
334
|
+
"service.name": "unknown_service"
|
|
335
|
+
},
|
|
336
|
+
"schema_url": ""
|
|
337
|
+
}
|
|
338
|
+
}
|
|
339
|
+
]
|
|
340
|
+
}
|
|
341
|
+
]
|