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.
Files changed (48) hide show
  1. quraite/__init__.py +3 -3
  2. quraite/adapters/__init__.py +134 -134
  3. quraite/adapters/agno_adapter.py +159 -159
  4. quraite/adapters/base.py +123 -123
  5. quraite/adapters/bedrock_agents_adapter.py +343 -343
  6. quraite/adapters/flowise_adapter.py +275 -275
  7. quraite/adapters/google_adk_adapter.py +209 -209
  8. quraite/adapters/http_adapter.py +239 -239
  9. quraite/adapters/langflow_adapter.py +192 -192
  10. quraite/adapters/langgraph_adapter.py +304 -304
  11. quraite/adapters/langgraph_server_adapter.py +252 -252
  12. quraite/adapters/n8n_adapter.py +220 -220
  13. quraite/adapters/openai_agents_adapter.py +269 -269
  14. quraite/adapters/pydantic_ai_adapter.py +312 -312
  15. quraite/adapters/smolagents_adapter.py +152 -152
  16. quraite/logger.py +61 -64
  17. quraite/schema/message.py +91 -54
  18. quraite/schema/response.py +16 -16
  19. quraite/serve/__init__.py +1 -1
  20. quraite/serve/cloudflared.py +210 -210
  21. quraite/serve/local_agent.py +360 -360
  22. quraite/tracing/__init__.py +24 -24
  23. quraite/tracing/constants.py +16 -16
  24. quraite/tracing/span_exporter.py +115 -115
  25. quraite/tracing/span_processor.py +49 -49
  26. quraite/tracing/tool_extractors.py +290 -290
  27. quraite/tracing/trace.py +564 -494
  28. quraite/tracing/types.py +179 -179
  29. quraite/tracing/utils.py +170 -170
  30. quraite/utils/json_utils.py +269 -269
  31. {quraite-0.0.2.dist-info → quraite-0.1.0.dist-info}/METADATA +9 -9
  32. quraite-0.1.0.dist-info/RECORD +35 -0
  33. {quraite-0.0.2.dist-info → quraite-0.1.0.dist-info}/WHEEL +1 -1
  34. quraite/traces/traces_adk_openinference.json +0 -379
  35. quraite/traces/traces_agno_multi_agent.json +0 -669
  36. quraite/traces/traces_agno_openinference.json +0 -321
  37. quraite/traces/traces_crewai_openinference.json +0 -155
  38. quraite/traces/traces_langgraph_openinference.json +0 -349
  39. quraite/traces/traces_langgraph_openinference_multi_agent.json +0 -2705
  40. quraite/traces/traces_langgraph_traceloop.json +0 -510
  41. quraite/traces/traces_openai_agents_multi_agent_1.json +0 -402
  42. quraite/traces/traces_openai_agents_openinference.json +0 -341
  43. quraite/traces/traces_pydantic_openinference.json +0 -286
  44. quraite/traces/traces_pydantic_openinference_multi_agent_1.json +0 -399
  45. quraite/traces/traces_pydantic_openinference_multi_agent_2.json +0 -398
  46. quraite/traces/traces_smol_agents_openinference.json +0 -397
  47. quraite/traces/traces_smol_agents_tool_calling_openinference.json +0 -704
  48. quraite-0.0.2.dist-info/RECORD +0 -49
@@ -1,379 +0,0 @@
1
- [
2
- {
3
- "trace_id": "5b2deaeb",
4
- "spans": [
5
- {
6
- "name": "execute_tool get_weather",
7
- "context": {
8
- "trace_id": "0x5b2deaebc3276fc9f59642a964300e4b",
9
- "span_id": "0xedad7c42044ca291",
10
- "trace_state": "[]"
11
- },
12
- "kind": "SpanKind.INTERNAL",
13
- "parent_id": "0x6a6b1def37593155",
14
- "start_time": "2025-11-28T06:31:28.951259Z",
15
- "end_time": "2025-11-28T06:31:28.951502Z",
16
- "status": {
17
- "status_code": "OK"
18
- },
19
- "attributes": {
20
- "session.id": "655de19a-2651-42a4-a1d2-10dd679eae39",
21
- "user.id": "2230c3c6-a6d2-4373-8479-e01ee0d9294d",
22
- "gen_ai.system": "gcp.vertex.agent",
23
- "gen_ai.operation.name": "execute_tool",
24
- "gen_ai.tool.name": "get_weather",
25
- "gen_ai.tool.description": "Retrieves the current weather report for a specified city.\n\nArgs:\n city (str): The name of the city for which to retrieve the weather report.\n\nReturns:\n dict: status and result or error msg.",
26
- "gen_ai.tool.call.id": "adk-17d5d98a-ce92-4a84-b97a-acaab54fa171",
27
- "gcp.vertex.agent.tool_call_args": "{\"city\": \"New York\"}",
28
- "gcp.vertex.agent.event_id": "5945fbd3-f7a8-4fb2-836e-92daa65421dc",
29
- "gcp.vertex.agent.tool_response": "{\"status\": \"success\", \"report\": \"The weather in New York is sunny with a temperature of 25 degrees Celsius (77 degrees Fahrenheit).\"}",
30
- "gcp.vertex.agent.llm_request": "{}",
31
- "gcp.vertex.agent.llm_response": "{}",
32
- "tool.name": "get_weather",
33
- "tool.description": "Retrieves the current weather report for a specified city.\n\nArgs:\n city (str): The name of the city for which to retrieve the weather report.\n\nReturns:\n dict: status and result or error msg.",
34
- "tool.parameters": "{\"city\": \"New York\"}",
35
- "input.value": "{\"city\": \"New York\"}",
36
- "input.mime_type": "application/json",
37
- "output.value": "{\"id\":\"adk-17d5d98a-ce92-4a84-b97a-acaab54fa171\",\"name\":\"get_weather\",\"response\":{\"status\":\"success\",\"report\":\"The weather in New York is sunny with a temperature of 25 degrees Celsius (77 degrees Fahrenheit).\"}}",
38
- "output.mime_type": "application/json",
39
- "openinference.span.kind": "TOOL"
40
- },
41
- "events": [],
42
- "links": [],
43
- "resource": {
44
- "attributes": {
45
- "telemetry.sdk.language": "python",
46
- "telemetry.sdk.name": "opentelemetry",
47
- "telemetry.sdk.version": "1.38.0",
48
- "service.name": "unknown_service"
49
- },
50
- "schema_url": ""
51
- }
52
- },
53
- {
54
- "name": "execute_tool get_current_time",
55
- "context": {
56
- "trace_id": "0x5b2deaebc3276fc9f59642a964300e4b",
57
- "span_id": "0xe4696c2431675a8b",
58
- "trace_state": "[]"
59
- },
60
- "kind": "SpanKind.INTERNAL",
61
- "parent_id": "0x6a6b1def37593155",
62
- "start_time": "2025-11-28T06:31:28.951573Z",
63
- "end_time": "2025-11-28T06:31:28.952235Z",
64
- "status": {
65
- "status_code": "OK"
66
- },
67
- "attributes": {
68
- "session.id": "655de19a-2651-42a4-a1d2-10dd679eae39",
69
- "user.id": "2230c3c6-a6d2-4373-8479-e01ee0d9294d",
70
- "gen_ai.system": "gcp.vertex.agent",
71
- "gen_ai.operation.name": "execute_tool",
72
- "gen_ai.tool.name": "get_current_time",
73
- "gen_ai.tool.description": "Returns the current time in a specified city.\n\nArgs:\n city (str): The name of the city for which to retrieve the current time.\n\nReturns:\n dict: status and result or error msg.",
74
- "gen_ai.tool.call.id": "adk-9fbaf45d-aee0-47cb-9f90-426df12dada0",
75
- "gcp.vertex.agent.tool_call_args": "{\"city\": \"New York\"}",
76
- "gcp.vertex.agent.event_id": "85be6332-f783-43b0-bf1e-2697b4b92b56",
77
- "gcp.vertex.agent.tool_response": "{\"status\": \"success\", \"report\": \"The current time in New York is 2025-11-28 01:31:28 EST-0500\"}",
78
- "gcp.vertex.agent.llm_request": "{}",
79
- "gcp.vertex.agent.llm_response": "{}",
80
- "tool.name": "get_current_time",
81
- "tool.description": "Returns the current time in a specified city.\n\nArgs:\n city (str): The name of the city for which to retrieve the current time.\n\nReturns:\n dict: status and result or error msg.",
82
- "tool.parameters": "{\"city\": \"New York\"}",
83
- "input.value": "{\"city\": \"New York\"}",
84
- "input.mime_type": "application/json",
85
- "output.value": "{\"id\":\"adk-9fbaf45d-aee0-47cb-9f90-426df12dada0\",\"name\":\"get_current_time\",\"response\":{\"status\":\"success\",\"report\":\"The current time in New York is 2025-11-28 01:31:28 EST-0500\"}}",
86
- "output.mime_type": "application/json",
87
- "openinference.span.kind": "TOOL"
88
- },
89
- "events": [],
90
- "links": [],
91
- "resource": {
92
- "attributes": {
93
- "telemetry.sdk.language": "python",
94
- "telemetry.sdk.name": "opentelemetry",
95
- "telemetry.sdk.version": "1.38.0",
96
- "service.name": "unknown_service"
97
- },
98
- "schema_url": ""
99
- }
100
- },
101
- {
102
- "name": "execute_tool (merged)",
103
- "context": {
104
- "trace_id": "0x5b2deaebc3276fc9f59642a964300e4b",
105
- "span_id": "0x2a0ebde3e125391e",
106
- "trace_state": "[]"
107
- },
108
- "kind": "SpanKind.INTERNAL",
109
- "parent_id": "0x6a6b1def37593155",
110
- "start_time": "2025-11-28T06:31:28.952347Z",
111
- "end_time": "2025-11-28T06:31:28.952374Z",
112
- "status": {
113
- "status_code": "UNSET"
114
- },
115
- "attributes": {
116
- "session.id": "655de19a-2651-42a4-a1d2-10dd679eae39",
117
- "user.id": "2230c3c6-a6d2-4373-8479-e01ee0d9294d",
118
- "gen_ai.system": "gcp.vertex.agent",
119
- "gen_ai.operation.name": "execute_tool",
120
- "gen_ai.tool.name": "(merged tools)",
121
- "gen_ai.tool.description": "(merged tools)",
122
- "gen_ai.tool.call.id": "ff036d1a-85a6-4f29-8aa1-a755426c036f",
123
- "gcp.vertex.agent.tool_call_args": "N/A",
124
- "gcp.vertex.agent.event_id": "ff036d1a-85a6-4f29-8aa1-a755426c036f",
125
- "gcp.vertex.agent.tool_response": "<not serializable>",
126
- "gcp.vertex.agent.llm_request": "{}",
127
- "gcp.vertex.agent.llm_response": "{}"
128
- },
129
- "events": [],
130
- "links": [],
131
- "resource": {
132
- "attributes": {
133
- "telemetry.sdk.language": "python",
134
- "telemetry.sdk.name": "opentelemetry",
135
- "telemetry.sdk.version": "1.38.0",
136
- "service.name": "unknown_service"
137
- },
138
- "schema_url": ""
139
- }
140
- },
141
- {
142
- "name": "call_llm",
143
- "context": {
144
- "trace_id": "0x5b2deaebc3276fc9f59642a964300e4b",
145
- "span_id": "0x6a6b1def37593155",
146
- "trace_state": "[]"
147
- },
148
- "kind": "SpanKind.INTERNAL",
149
- "parent_id": "0xfa1683e4b30f34b0",
150
- "start_time": "2025-11-28T06:31:27.212649Z",
151
- "end_time": "2025-11-28T06:31:28.952413Z",
152
- "status": {
153
- "status_code": "OK"
154
- },
155
- "attributes": {
156
- "session.id": "655de19a-2651-42a4-a1d2-10dd679eae39",
157
- "user.id": "2230c3c6-a6d2-4373-8479-e01ee0d9294d",
158
- "gen_ai.system": "gcp.vertex.agent",
159
- "gen_ai.request.model": "gemini-2.5-flash",
160
- "gcp.vertex.agent.invocation_id": "e-1fa42c57-5276-46be-ba75-ca7bdec8c4a4",
161
- "gcp.vertex.agent.session_id": "655de19a-2651-42a4-a1d2-10dd679eae39",
162
- "gcp.vertex.agent.event_id": "426ff538-b213-4c60-bcde-a34858539d37",
163
- "gcp.vertex.agent.llm_request": "{\"model\": \"gemini-2.5-flash\", \"config\": {\"http_options\": {\"headers\": {\"x-goog-api-client\": \"google-adk/1.14.1 gl-python/3.13.0\", \"user-agent\": \"google-adk/1.14.1 gl-python/3.13.0\"}}, \"system_instruction\": \"You are a helpful agent who can answer user questions about the time and weather in a city.\\n\\nYou are an agent. Your internal name is \\\"weather_time_agent\\\".\\n\\n The description about you is \\\"Agent to answer questions about the time and weather in a city.\\\"\", \"tools\": [{\"function_declarations\": [{\"description\": \"Retrieves the current weather report for a specified city.\\n\\nArgs:\\n city (str): The name of the city for which to retrieve the weather report.\\n\\nReturns:\\n dict: status and result or error msg.\\n\", \"name\": \"get_weather\", \"parameters\": {\"properties\": {\"city\": {\"type\": \"STRING\"}}, \"required\": [\"city\"], \"type\": \"OBJECT\"}}, {\"description\": \"Returns the current time in a specified city.\\n\\nArgs:\\n city (str): The name of the city for which to retrieve the current time.\\n\\nReturns:\\n dict: status and result or error msg.\\n\", \"name\": \"get_current_time\", \"parameters\": {\"properties\": {\"city\": {\"type\": \"STRING\"}}, \"required\": [\"city\"], \"type\": \"OBJECT\"}}]}]}, \"contents\": [{\"parts\": [{\"text\": \"What is the weather and time in New York?\"}], \"role\": \"user\"}]}",
164
- "gcp.vertex.agent.llm_response": "{\"content\":{\"parts\":[{\"function_call\":{\"args\":{\"city\":\"New York\"},\"name\":\"get_weather\"},\"thought_signature\":\"CvYCAXLI2nwO_q8jIyMhg2WhyN2_vgDy4qTRPArx_F5aWpkk4I0sYf1PLNNmA-uQ_TnAVDkHp15iLiKPqpsT3OXw4ierDLr53sZOpILcRcSAXic1F6Hw7_jYT10q0oVSBclzI-zXBPmEJ0iLVuBeFttGKBGtPU03UokEps1Oh3ZH3nPIi8Q5PMWMi4c4MzUYZfQANRdybLy66OT2Y4Gg1ckrIaVu-gIovycElSgZLl6oMCd7wY7iIZFSJqO7zsMI2F_eI7XeYe-Mx26FKxW6no4zQvL-QAhTR5gdrvfhm9oFQTfulRb0maLnc1YDmNnP7g0QLKH76JUEarkz-_RL8HmHqU8BjxUAm7BaAN-kL69FN-yGXcrghFHG3AH8OIqIejmI1cpuvT-rrJglT1ECsdifi3g1Wn0BetMBY--Q-zssyCFvn5YCmtgPQPzehKwEy9zdcKGP-NIqMfomG_TEhqHg5cPeKaApRiS3PquE6XRalh7JDDOVelM=\"},{\"function_call\":{\"args\":{\"city\":\"New York\"},\"name\":\"get_current_time\"}}],\"role\":\"model\"},\"finish_reason\":\"STOP\",\"usage_metadata\":{\"candidates_token_count\":34,\"prompt_token_count\":230,\"prompt_tokens_details\":[{\"modality\":\"TEXT\",\"token_count\":230}],\"thoughts_token_count\":76,\"total_token_count\":340}}",
165
- "gen_ai.usage.input_tokens": 230,
166
- "gen_ai.usage.output_tokens": 34,
167
- "gen_ai.response.finish_reasons": [
168
- "stop"
169
- ],
170
- "llm.provider": "google",
171
- "input.value": "{\"model\":\"gemini-2.5-flash\",\"contents\":[{\"parts\":[{\"text\":\"What is the weather and time in New York?\"}],\"role\":\"user\"}],\"config\":{\"http_options\":{\"headers\":{\"x-goog-api-client\":\"google-adk/1.14.1 gl-python/3.13.0\",\"user-agent\":\"google-adk/1.14.1 gl-python/3.13.0\"}},\"system_instruction\":\"You are a helpful agent who can answer user questions about the time and weather in a city.\\n\\nYou are an agent. Your internal name is \\\"weather_time_agent\\\".\\n\\n The description about you is \\\"Agent to answer questions about the time and weather in a city.\\\"\",\"tools\":[{\"function_declarations\":[{\"description\":\"Retrieves the current weather report for a specified city.\\n\\nArgs:\\n city (str): The name of the city for which to retrieve the weather report.\\n\\nReturns:\\n dict: status and result or error msg.\\n\",\"name\":\"get_weather\",\"parameters\":{\"properties\":{\"city\":{\"type\":\"STRING\"}},\"required\":[\"city\"],\"type\":\"OBJECT\"}},{\"description\":\"Returns the current time in a specified city.\\n\\nArgs:\\n city (str): The name of the city for which to retrieve the current time.\\n\\nReturns:\\n dict: status and result or error msg.\\n\",\"name\":\"get_current_time\",\"parameters\":{\"properties\":{\"city\":{\"type\":\"STRING\"}},\"required\":[\"city\"],\"type\":\"OBJECT\"}}]}]},\"live_connect_config\":{}}",
172
- "input.mime_type": "application/json",
173
- "llm.tools.0.tool.json_schema": "{\"description\":\"Retrieves the current weather report for a specified city.\\n\\nArgs:\\n city (str): The name of the city for which to retrieve the weather report.\\n\\nReturns:\\n dict: status and result or error msg.\\n\",\"name\":\"get_weather\",\"parameters\":{\"properties\":{\"city\":{\"type\":\"STRING\"}},\"required\":[\"city\"],\"type\":\"OBJECT\"}}",
174
- "llm.tools.1.tool.json_schema": "{\"description\":\"Returns the current time in a specified city.\\n\\nArgs:\\n city (str): The name of the city for which to retrieve the current time.\\n\\nReturns:\\n dict: status and result or error msg.\\n\",\"name\":\"get_current_time\",\"parameters\":{\"properties\":{\"city\":{\"type\":\"STRING\"}},\"required\":[\"city\"],\"type\":\"OBJECT\"}}",
175
- "llm.model_name": "gemini-2.5-flash",
176
- "llm.invocation_parameters": "{\"http_options\":{\"headers\":{\"x-goog-api-client\":\"google-adk/1.14.1 gl-python/3.13.0\",\"user-agent\":\"google-adk/1.14.1 gl-python/3.13.0\"}},\"system_instruction\":\"You are a helpful agent who can answer user questions about the time and weather in a city.\\n\\nYou are an agent. Your internal name is \\\"weather_time_agent\\\".\\n\\n The description about you is \\\"Agent to answer questions about the time and weather in a city.\\\"\",\"tools\":[{\"function_declarations\":[{\"description\":\"Retrieves the current weather report for a specified city.\\n\\nArgs:\\n city (str): The name of the city for which to retrieve the weather report.\\n\\nReturns:\\n dict: status and result or error msg.\\n\",\"name\":\"get_weather\",\"parameters\":{\"properties\":{\"city\":{\"type\":\"STRING\"}},\"required\":[\"city\"],\"type\":\"OBJECT\"}},{\"description\":\"Returns the current time in a specified city.\\n\\nArgs:\\n city (str): The name of the city for which to retrieve the current time.\\n\\nReturns:\\n dict: status and result or error msg.\\n\",\"name\":\"get_current_time\",\"parameters\":{\"properties\":{\"city\":{\"type\":\"STRING\"}},\"required\":[\"city\"],\"type\":\"OBJECT\"}}]}]}",
177
- "llm.input_messages.0.message.role": "system",
178
- "llm.input_messages.0.message.content": "You are a helpful agent who can answer user questions about the time and weather in a city.\n\nYou are an agent. Your internal name is \"weather_time_agent\".\n\n The description about you is \"Agent to answer questions about the time and weather in a city.\"",
179
- "llm.input_messages.1.message.role": "user",
180
- "llm.input_messages.1.message.contents.0.message_content.text": "What is the weather and time in New York?",
181
- "llm.input_messages.1.message.contents.0.message_content.type": "text",
182
- "output.value": "{\"content\":{\"parts\":[{\"function_call\":{\"args\":{\"city\":\"New York\"},\"name\":\"get_weather\"},\"thought_signature\":\"CvYCAXLI2nwO_q8jIyMhg2WhyN2_vgDy4qTRPArx_F5aWpkk4I0sYf1PLNNmA-uQ_TnAVDkHp15iLiKPqpsT3OXw4ierDLr53sZOpILcRcSAXic1F6Hw7_jYT10q0oVSBclzI-zXBPmEJ0iLVuBeFttGKBGtPU03UokEps1Oh3ZH3nPIi8Q5PMWMi4c4MzUYZfQANRdybLy66OT2Y4Gg1ckrIaVu-gIovycElSgZLl6oMCd7wY7iIZFSJqO7zsMI2F_eI7XeYe-Mx26FKxW6no4zQvL-QAhTR5gdrvfhm9oFQTfulRb0maLnc1YDmNnP7g0QLKH76JUEarkz-_RL8HmHqU8BjxUAm7BaAN-kL69FN-yGXcrghFHG3AH8OIqIejmI1cpuvT-rrJglT1ECsdifi3g1Wn0BetMBY--Q-zssyCFvn5YCmtgPQPzehKwEy9zdcKGP-NIqMfomG_TEhqHg5cPeKaApRiS3PquE6XRalh7JDDOVelM=\"},{\"function_call\":{\"args\":{\"city\":\"New York\"},\"name\":\"get_current_time\"}}],\"role\":\"model\"},\"finish_reason\":\"STOP\",\"usage_metadata\":{\"candidates_token_count\":34,\"prompt_token_count\":230,\"prompt_tokens_details\":[{\"modality\":\"TEXT\",\"token_count\":230}],\"thoughts_token_count\":76,\"total_token_count\":340}}",
183
- "output.mime_type": "application/json",
184
- "llm.token_count.total": 340,
185
- "llm.token_count.prompt": 230,
186
- "llm.token_count.completion_details.reasoning": 76,
187
- "llm.token_count.completion": 110,
188
- "llm.output_messages.0.message.role": "model",
189
- "llm.output_messages.0.message.tool_calls.0.tool_call.function.name": "get_weather",
190
- "llm.output_messages.0.message.tool_calls.0.tool_call.function.arguments": "{\"city\": \"New York\"}",
191
- "llm.output_messages.0.message.tool_calls.1.tool_call.function.name": "get_current_time",
192
- "llm.output_messages.0.message.tool_calls.1.tool_call.function.arguments": "{\"city\": \"New York\"}",
193
- "openinference.span.kind": "LLM"
194
- },
195
- "events": [],
196
- "links": [],
197
- "resource": {
198
- "attributes": {
199
- "telemetry.sdk.language": "python",
200
- "telemetry.sdk.name": "opentelemetry",
201
- "telemetry.sdk.version": "1.38.0",
202
- "service.name": "unknown_service"
203
- },
204
- "schema_url": ""
205
- }
206
- },
207
- {
208
- "name": "call_llm",
209
- "context": {
210
- "trace_id": "0x5b2deaebc3276fc9f59642a964300e4b",
211
- "span_id": "0xbaddbb5a0e2a23db",
212
- "trace_state": "[]"
213
- },
214
- "kind": "SpanKind.INTERNAL",
215
- "parent_id": "0xfa1683e4b30f34b0",
216
- "start_time": "2025-11-28T06:31:28.952751Z",
217
- "end_time": "2025-11-28T06:31:30.880712Z",
218
- "status": {
219
- "status_code": "OK"
220
- },
221
- "attributes": {
222
- "session.id": "655de19a-2651-42a4-a1d2-10dd679eae39",
223
- "user.id": "2230c3c6-a6d2-4373-8479-e01ee0d9294d",
224
- "gen_ai.system": "gcp.vertex.agent",
225
- "gen_ai.request.model": "gemini-2.5-flash",
226
- "gcp.vertex.agent.invocation_id": "e-1fa42c57-5276-46be-ba75-ca7bdec8c4a4",
227
- "gcp.vertex.agent.session_id": "655de19a-2651-42a4-a1d2-10dd679eae39",
228
- "gcp.vertex.agent.event_id": "0b95838b-fb8a-4c87-a303-f4c5358c139c",
229
- "gcp.vertex.agent.llm_request": "{\"model\": \"gemini-2.5-flash\", \"config\": {\"http_options\": {\"headers\": {\"x-goog-api-client\": \"google-adk/1.14.1 gl-python/3.13.0\", \"user-agent\": \"google-adk/1.14.1 gl-python/3.13.0\"}}, \"system_instruction\": \"You are a helpful agent who can answer user questions about the time and weather in a city.\\n\\nYou are an agent. Your internal name is \\\"weather_time_agent\\\".\\n\\n The description about you is \\\"Agent to answer questions about the time and weather in a city.\\\"\", \"tools\": [{\"function_declarations\": [{\"description\": \"Retrieves the current weather report for a specified city.\\n\\nArgs:\\n city (str): The name of the city for which to retrieve the weather report.\\n\\nReturns:\\n dict: status and result or error msg.\\n\", \"name\": \"get_weather\", \"parameters\": {\"properties\": {\"city\": {\"type\": \"STRING\"}}, \"required\": [\"city\"], \"type\": \"OBJECT\"}}, {\"description\": \"Returns the current time in a specified city.\\n\\nArgs:\\n city (str): The name of the city for which to retrieve the current time.\\n\\nReturns:\\n dict: status and result or error msg.\\n\", \"name\": \"get_current_time\", \"parameters\": {\"properties\": {\"city\": {\"type\": \"STRING\"}}, \"required\": [\"city\"], \"type\": \"OBJECT\"}}]}]}, \"contents\": [{\"parts\": [{\"text\": \"What is the weather and time in New York?\"}], \"role\": \"user\"}, {\"parts\": [{\"function_call\": {\"args\": {\"city\": \"New York\"}, \"name\": \"get_weather\"}, \"thought_signature\": \"<not serializable>\"}, {\"function_call\": {\"args\": {\"city\": \"New York\"}, \"name\": \"get_current_time\"}}], \"role\": \"model\"}, {\"parts\": [{\"function_response\": {\"name\": \"get_weather\", \"response\": {\"status\": \"success\", \"report\": \"The weather in New York is sunny with a temperature of 25 degrees Celsius (77 degrees Fahrenheit).\"}}}, {\"function_response\": {\"name\": \"get_current_time\", \"response\": {\"status\": \"success\", \"report\": \"The current time in New York is 2025-11-28 01:31:28 EST-0500\"}}}], \"role\": \"user\"}]}",
230
- "gcp.vertex.agent.llm_response": "{\"content\":{\"parts\":[{\"text\":\"The weather in New York is sunny with a temperature of 25 degrees Celsius (77 degrees Fahrenheit). The current time in New York is 2025-11-28 01:31:28 EST-0500.\",\"thought_signature\":\"CtgDAXLI2nx-wSA4UTvA8fnC28AUefMmRzQG51-SKYb1J3EJNefUihgAMWJHnnokwCsBFFvh3HYErbVxBxBFaMULYKpoNp1ibBBBbMiNB1mTboBZ_nWoDrYyKlGLB6HuTVqkWy8sAlUyE95K89nrsh2PdJj5ZLYgdMzvCOZ8KKibvZ7c8OKoGVFet3NYjQPuCn6XtuWPc9krDBvaoaBkj-lN47Lk_FEeSl265Y6RUUUrBFotMt6dZ7VGqA2XXnbwUj_pJkinZvq58vYkA2QRYIDwWf_rFURAbBnAB4AOlnzPznGBWhWl0hbZhOt9GzXIgOke-KIZUU5q87qKS3xYVhp5p45MwI2_dzkxJ-lUlxNsDZfh4x5cMXWUk5EAvDrRibxiSuQQwmEgergFWFs6SP9RuZ-hyEWMgnJb34-VwH5mVB6OHo8dn208CI1MnSx9Sf8qdRmBoHM8GMXZ1APENGbW7abk7StUm-rhm6-PkTUY2VTsgp1NqbUQ1YZDQoZioJdT7zF5PO7yBMcglfg29PeCbb8Goxc4HzzgQOG-fCsYsA5C0tbpEUj262sx3GO2yz375Z57sZ_ccojZpSW_2sQ9u3RuwxgmIvaDCS8B_fPr26o7bjRRM1OiQw==\"}],\"role\":\"model\"},\"finish_reason\":\"STOP\",\"usage_metadata\":{\"candidates_token_count\":56,\"prompt_token_count\":359,\"prompt_tokens_details\":[{\"modality\":\"TEXT\",\"token_count\":359}],\"thoughts_token_count\":123,\"total_token_count\":538}}",
231
- "gen_ai.usage.input_tokens": 359,
232
- "gen_ai.usage.output_tokens": 56,
233
- "gen_ai.response.finish_reasons": [
234
- "stop"
235
- ],
236
- "llm.provider": "google",
237
- "input.value": "{\"model\":\"gemini-2.5-flash\",\"contents\":[{\"parts\":[{\"text\":\"What is the weather and time in New York?\"}],\"role\":\"user\"},{\"parts\":[{\"function_call\":{\"args\":{\"city\":\"New York\"},\"name\":\"get_weather\"},\"thought_signature\":\"CvYCAXLI2nwO_q8jIyMhg2WhyN2_vgDy4qTRPArx_F5aWpkk4I0sYf1PLNNmA-uQ_TnAVDkHp15iLiKPqpsT3OXw4ierDLr53sZOpILcRcSAXic1F6Hw7_jYT10q0oVSBclzI-zXBPmEJ0iLVuBeFttGKBGtPU03UokEps1Oh3ZH3nPIi8Q5PMWMi4c4MzUYZfQANRdybLy66OT2Y4Gg1ckrIaVu-gIovycElSgZLl6oMCd7wY7iIZFSJqO7zsMI2F_eI7XeYe-Mx26FKxW6no4zQvL-QAhTR5gdrvfhm9oFQTfulRb0maLnc1YDmNnP7g0QLKH76JUEarkz-_RL8HmHqU8BjxUAm7BaAN-kL69FN-yGXcrghFHG3AH8OIqIejmI1cpuvT-rrJglT1ECsdifi3g1Wn0BetMBY--Q-zssyCFvn5YCmtgPQPzehKwEy9zdcKGP-NIqMfomG_TEhqHg5cPeKaApRiS3PquE6XRalh7JDDOVelM=\"},{\"function_call\":{\"args\":{\"city\":\"New York\"},\"name\":\"get_current_time\"}}],\"role\":\"model\"},{\"parts\":[{\"function_response\":{\"name\":\"get_weather\",\"response\":{\"status\":\"success\",\"report\":\"The weather in New York is sunny with a temperature of 25 degrees Celsius (77 degrees Fahrenheit).\"}}},{\"function_response\":{\"name\":\"get_current_time\",\"response\":{\"status\":\"success\",\"report\":\"The current time in New York is 2025-11-28 01:31:28 EST-0500\"}}}],\"role\":\"user\"}],\"config\":{\"http_options\":{\"headers\":{\"x-goog-api-client\":\"google-adk/1.14.1 gl-python/3.13.0\",\"user-agent\":\"google-adk/1.14.1 gl-python/3.13.0\"}},\"system_instruction\":\"You are a helpful agent who can answer user questions about the time and weather in a city.\\n\\nYou are an agent. Your internal name is \\\"weather_time_agent\\\".\\n\\n The description about you is \\\"Agent to answer questions about the time and weather in a city.\\\"\",\"tools\":[{\"function_declarations\":[{\"description\":\"Retrieves the current weather report for a specified city.\\n\\nArgs:\\n city (str): The name of the city for which to retrieve the weather report.\\n\\nReturns:\\n dict: status and result or error msg.\\n\",\"name\":\"get_weather\",\"parameters\":{\"properties\":{\"city\":{\"type\":\"STRING\"}},\"required\":[\"city\"],\"type\":\"OBJECT\"}},{\"description\":\"Returns the current time in a specified city.\\n\\nArgs:\\n city (str): The name of the city for which to retrieve the current time.\\n\\nReturns:\\n dict: status and result or error msg.\\n\",\"name\":\"get_current_time\",\"parameters\":{\"properties\":{\"city\":{\"type\":\"STRING\"}},\"required\":[\"city\"],\"type\":\"OBJECT\"}}]}]},\"live_connect_config\":{}}",
238
- "input.mime_type": "application/json",
239
- "llm.tools.0.tool.json_schema": "{\"description\":\"Retrieves the current weather report for a specified city.\\n\\nArgs:\\n city (str): The name of the city for which to retrieve the weather report.\\n\\nReturns:\\n dict: status and result or error msg.\\n\",\"name\":\"get_weather\",\"parameters\":{\"properties\":{\"city\":{\"type\":\"STRING\"}},\"required\":[\"city\"],\"type\":\"OBJECT\"}}",
240
- "llm.tools.1.tool.json_schema": "{\"description\":\"Returns the current time in a specified city.\\n\\nArgs:\\n city (str): The name of the city for which to retrieve the current time.\\n\\nReturns:\\n dict: status and result or error msg.\\n\",\"name\":\"get_current_time\",\"parameters\":{\"properties\":{\"city\":{\"type\":\"STRING\"}},\"required\":[\"city\"],\"type\":\"OBJECT\"}}",
241
- "llm.model_name": "gemini-2.5-flash",
242
- "llm.invocation_parameters": "{\"http_options\":{\"headers\":{\"x-goog-api-client\":\"google-adk/1.14.1 gl-python/3.13.0\",\"user-agent\":\"google-adk/1.14.1 gl-python/3.13.0\"}},\"system_instruction\":\"You are a helpful agent who can answer user questions about the time and weather in a city.\\n\\nYou are an agent. Your internal name is \\\"weather_time_agent\\\".\\n\\n The description about you is \\\"Agent to answer questions about the time and weather in a city.\\\"\",\"tools\":[{\"function_declarations\":[{\"description\":\"Retrieves the current weather report for a specified city.\\n\\nArgs:\\n city (str): The name of the city for which to retrieve the weather report.\\n\\nReturns:\\n dict: status and result or error msg.\\n\",\"name\":\"get_weather\",\"parameters\":{\"properties\":{\"city\":{\"type\":\"STRING\"}},\"required\":[\"city\"],\"type\":\"OBJECT\"}},{\"description\":\"Returns the current time in a specified city.\\n\\nArgs:\\n city (str): The name of the city for which to retrieve the current time.\\n\\nReturns:\\n dict: status and result or error msg.\\n\",\"name\":\"get_current_time\",\"parameters\":{\"properties\":{\"city\":{\"type\":\"STRING\"}},\"required\":[\"city\"],\"type\":\"OBJECT\"}}]}]}",
243
- "llm.input_messages.0.message.role": "system",
244
- "llm.input_messages.0.message.content": "You are a helpful agent who can answer user questions about the time and weather in a city.\n\nYou are an agent. Your internal name is \"weather_time_agent\".\n\n The description about you is \"Agent to answer questions about the time and weather in a city.\"",
245
- "llm.input_messages.1.message.role": "user",
246
- "llm.input_messages.1.message.contents.0.message_content.text": "What is the weather and time in New York?",
247
- "llm.input_messages.1.message.contents.0.message_content.type": "text",
248
- "llm.input_messages.2.message.role": "model",
249
- "llm.input_messages.2.message.tool_calls.0.tool_call.function.name": "get_weather",
250
- "llm.input_messages.2.message.tool_calls.0.tool_call.function.arguments": "{\"city\": \"New York\"}",
251
- "llm.input_messages.2.message.tool_calls.1.tool_call.function.name": "get_current_time",
252
- "llm.input_messages.2.message.tool_calls.1.tool_call.function.arguments": "{\"city\": \"New York\"}",
253
- "llm.input_messages.3.message.role": "tool",
254
- "llm.input_messages.3.message.name": "get_weather",
255
- "llm.input_messages.3.message.content": "{\"status\": \"success\", \"report\": \"The weather in New York is sunny with a temperature of 25 degrees Celsius (77 degrees Fahrenheit).\"}",
256
- "llm.input_messages.4.message.role": "tool",
257
- "llm.input_messages.4.message.name": "get_current_time",
258
- "llm.input_messages.4.message.content": "{\"status\": \"success\", \"report\": \"The current time in New York is 2025-11-28 01:31:28 EST-0500\"}",
259
- "output.value": "{\"content\":{\"parts\":[{\"text\":\"The weather in New York is sunny with a temperature of 25 degrees Celsius (77 degrees Fahrenheit). The current time in New York is 2025-11-28 01:31:28 EST-0500.\",\"thought_signature\":\"CtgDAXLI2nx-wSA4UTvA8fnC28AUefMmRzQG51-SKYb1J3EJNefUihgAMWJHnnokwCsBFFvh3HYErbVxBxBFaMULYKpoNp1ibBBBbMiNB1mTboBZ_nWoDrYyKlGLB6HuTVqkWy8sAlUyE95K89nrsh2PdJj5ZLYgdMzvCOZ8KKibvZ7c8OKoGVFet3NYjQPuCn6XtuWPc9krDBvaoaBkj-lN47Lk_FEeSl265Y6RUUUrBFotMt6dZ7VGqA2XXnbwUj_pJkinZvq58vYkA2QRYIDwWf_rFURAbBnAB4AOlnzPznGBWhWl0hbZhOt9GzXIgOke-KIZUU5q87qKS3xYVhp5p45MwI2_dzkxJ-lUlxNsDZfh4x5cMXWUk5EAvDrRibxiSuQQwmEgergFWFs6SP9RuZ-hyEWMgnJb34-VwH5mVB6OHo8dn208CI1MnSx9Sf8qdRmBoHM8GMXZ1APENGbW7abk7StUm-rhm6-PkTUY2VTsgp1NqbUQ1YZDQoZioJdT7zF5PO7yBMcglfg29PeCbb8Goxc4HzzgQOG-fCsYsA5C0tbpEUj262sx3GO2yz375Z57sZ_ccojZpSW_2sQ9u3RuwxgmIvaDCS8B_fPr26o7bjRRM1OiQw==\"}],\"role\":\"model\"},\"finish_reason\":\"STOP\",\"usage_metadata\":{\"candidates_token_count\":56,\"prompt_token_count\":359,\"prompt_tokens_details\":[{\"modality\":\"TEXT\",\"token_count\":359}],\"thoughts_token_count\":123,\"total_token_count\":538}}",
260
- "output.mime_type": "application/json",
261
- "llm.token_count.total": 538,
262
- "llm.token_count.prompt": 359,
263
- "llm.token_count.completion_details.reasoning": 123,
264
- "llm.token_count.completion": 179,
265
- "llm.output_messages.0.message.role": "model",
266
- "llm.output_messages.0.message.contents.0.message_content.text": "The weather in New York is sunny with a temperature of 25 degrees Celsius (77 degrees Fahrenheit). The current time in New York is 2025-11-28 01:31:28 EST-0500.",
267
- "llm.output_messages.0.message.contents.0.message_content.type": "text",
268
- "openinference.span.kind": "LLM"
269
- },
270
- "events": [],
271
- "links": [],
272
- "resource": {
273
- "attributes": {
274
- "telemetry.sdk.language": "python",
275
- "telemetry.sdk.name": "opentelemetry",
276
- "telemetry.sdk.version": "1.38.0",
277
- "service.name": "unknown_service"
278
- },
279
- "schema_url": ""
280
- }
281
- },
282
- {
283
- "name": "agent_run [weather_time_agent]",
284
- "context": {
285
- "trace_id": "0x5b2deaebc3276fc9f59642a964300e4b",
286
- "span_id": "0xfa1683e4b30f34b0",
287
- "trace_state": "[]"
288
- },
289
- "kind": "SpanKind.INTERNAL",
290
- "parent_id": "0xa11b55c86e32a571",
291
- "start_time": "2025-11-28T06:31:27.209943Z",
292
- "end_time": "2025-11-28T06:31:30.881061Z",
293
- "status": {
294
- "status_code": "OK"
295
- },
296
- "attributes": {
297
- "session.id": "655de19a-2651-42a4-a1d2-10dd679eae39",
298
- "user.id": "2230c3c6-a6d2-4373-8479-e01ee0d9294d",
299
- "output.value": "{\"content\":{\"parts\":[{\"text\":\"The weather in New York is sunny with a temperature of 25 degrees Celsius (77 degrees Fahrenheit). The current time in New York is 2025-11-28 01:31:28 EST-0500.\",\"thought_signature\":\"CtgDAXLI2nx-wSA4UTvA8fnC28AUefMmRzQG51-SKYb1J3EJNefUihgAMWJHnnokwCsBFFvh3HYErbVxBxBFaMULYKpoNp1ibBBBbMiNB1mTboBZ_nWoDrYyKlGLB6HuTVqkWy8sAlUyE95K89nrsh2PdJj5ZLYgdMzvCOZ8KKibvZ7c8OKoGVFet3NYjQPuCn6XtuWPc9krDBvaoaBkj-lN47Lk_FEeSl265Y6RUUUrBFotMt6dZ7VGqA2XXnbwUj_pJkinZvq58vYkA2QRYIDwWf_rFURAbBnAB4AOlnzPznGBWhWl0hbZhOt9GzXIgOke-KIZUU5q87qKS3xYVhp5p45MwI2_dzkxJ-lUlxNsDZfh4x5cMXWUk5EAvDrRibxiSuQQwmEgergFWFs6SP9RuZ-hyEWMgnJb34-VwH5mVB6OHo8dn208CI1MnSx9Sf8qdRmBoHM8GMXZ1APENGbW7abk7StUm-rhm6-PkTUY2VTsgp1NqbUQ1YZDQoZioJdT7zF5PO7yBMcglfg29PeCbb8Goxc4HzzgQOG-fCsYsA5C0tbpEUj262sx3GO2yz375Z57sZ_ccojZpSW_2sQ9u3RuwxgmIvaDCS8B_fPr26o7bjRRM1OiQw==\"}],\"role\":\"model\"},\"finish_reason\":\"STOP\",\"usage_metadata\":{\"candidates_token_count\":56,\"prompt_token_count\":359,\"prompt_tokens_details\":[{\"modality\":\"TEXT\",\"token_count\":359}],\"thoughts_token_count\":123,\"total_token_count\":538},\"invocation_id\":\"e-1fa42c57-5276-46be-ba75-ca7bdec8c4a4\",\"author\":\"weather_time_agent\",\"actions\":{\"state_delta\":{},\"artifact_delta\":{},\"requested_auth_configs\":{},\"requested_tool_confirmations\":{}},\"id\":\"0b95838b-fb8a-4c87-a303-f4c5358c139c\",\"timestamp\":1764311488.952712}",
300
- "output.mime_type": "application/json",
301
- "openinference.span.kind": "AGENT"
302
- },
303
- "events": [],
304
- "links": [],
305
- "resource": {
306
- "attributes": {
307
- "telemetry.sdk.language": "python",
308
- "telemetry.sdk.name": "opentelemetry",
309
- "telemetry.sdk.version": "1.38.0",
310
- "service.name": "unknown_service"
311
- },
312
- "schema_url": ""
313
- }
314
- },
315
- {
316
- "name": "invocation [weather_time_agent]",
317
- "context": {
318
- "trace_id": "0x5b2deaebc3276fc9f59642a964300e4b",
319
- "span_id": "0xa11b55c86e32a571",
320
- "trace_state": "[]"
321
- },
322
- "kind": "SpanKind.INTERNAL",
323
- "parent_id": "0x17e0f1c33e28dc7f",
324
- "start_time": "2025-11-28T06:31:27.209774Z",
325
- "end_time": "2025-11-28T06:31:30.881204Z",
326
- "status": {
327
- "status_code": "OK"
328
- },
329
- "attributes": {
330
- "input.value": "{\"user_id\": \"2230c3c6-a6d2-4373-8479-e01ee0d9294d\", \"session_id\": \"655de19a-2651-42a4-a1d2-10dd679eae39\", \"new_message\": {\"parts\": [{\"text\": \"What is the weather and time in New York?\"}], \"role\": \"user\"}, \"state_delta\": null, \"run_config\": null}",
331
- "input.mime_type": "application/json",
332
- "user.id": "2230c3c6-a6d2-4373-8479-e01ee0d9294d",
333
- "session.id": "655de19a-2651-42a4-a1d2-10dd679eae39",
334
- "output.value": "{\"content\":{\"parts\":[{\"text\":\"The weather in New York is sunny with a temperature of 25 degrees Celsius (77 degrees Fahrenheit). The current time in New York is 2025-11-28 01:31:28 EST-0500.\",\"thought_signature\":\"CtgDAXLI2nx-wSA4UTvA8fnC28AUefMmRzQG51-SKYb1J3EJNefUihgAMWJHnnokwCsBFFvh3HYErbVxBxBFaMULYKpoNp1ibBBBbMiNB1mTboBZ_nWoDrYyKlGLB6HuTVqkWy8sAlUyE95K89nrsh2PdJj5ZLYgdMzvCOZ8KKibvZ7c8OKoGVFet3NYjQPuCn6XtuWPc9krDBvaoaBkj-lN47Lk_FEeSl265Y6RUUUrBFotMt6dZ7VGqA2XXnbwUj_pJkinZvq58vYkA2QRYIDwWf_rFURAbBnAB4AOlnzPznGBWhWl0hbZhOt9GzXIgOke-KIZUU5q87qKS3xYVhp5p45MwI2_dzkxJ-lUlxNsDZfh4x5cMXWUk5EAvDrRibxiSuQQwmEgergFWFs6SP9RuZ-hyEWMgnJb34-VwH5mVB6OHo8dn208CI1MnSx9Sf8qdRmBoHM8GMXZ1APENGbW7abk7StUm-rhm6-PkTUY2VTsgp1NqbUQ1YZDQoZioJdT7zF5PO7yBMcglfg29PeCbb8Goxc4HzzgQOG-fCsYsA5C0tbpEUj262sx3GO2yz375Z57sZ_ccojZpSW_2sQ9u3RuwxgmIvaDCS8B_fPr26o7bjRRM1OiQw==\"}],\"role\":\"model\"},\"finish_reason\":\"STOP\",\"usage_metadata\":{\"candidates_token_count\":56,\"prompt_token_count\":359,\"prompt_tokens_details\":[{\"modality\":\"TEXT\",\"token_count\":359}],\"thoughts_token_count\":123,\"total_token_count\":538},\"invocation_id\":\"e-1fa42c57-5276-46be-ba75-ca7bdec8c4a4\",\"author\":\"weather_time_agent\",\"actions\":{\"state_delta\":{},\"artifact_delta\":{},\"requested_auth_configs\":{},\"requested_tool_confirmations\":{}},\"id\":\"0b95838b-fb8a-4c87-a303-f4c5358c139c\",\"timestamp\":1764311488.952712}",
335
- "output.mime_type": "application/json",
336
- "openinference.span.kind": "CHAIN"
337
- },
338
- "events": [],
339
- "links": [],
340
- "resource": {
341
- "attributes": {
342
- "telemetry.sdk.language": "python",
343
- "telemetry.sdk.name": "opentelemetry",
344
- "telemetry.sdk.version": "1.38.0",
345
- "service.name": "unknown_service"
346
- },
347
- "schema_url": ""
348
- }
349
- },
350
- {
351
- "name": "quraite/testcase-1",
352
- "context": {
353
- "trace_id": "0x5b2deaebc3276fc9f59642a964300e4b",
354
- "span_id": "0x17e0f1c33e28dc7f",
355
- "trace_state": "[]"
356
- },
357
- "kind": "SpanKind.INTERNAL",
358
- "parent_id": null,
359
- "start_time": "2025-11-28T06:31:27.209518Z",
360
- "end_time": "2025-11-28T06:31:30.881290Z",
361
- "status": {
362
- "status_code": "UNSET"
363
- },
364
- "attributes": {},
365
- "events": [],
366
- "links": [],
367
- "resource": {
368
- "attributes": {
369
- "telemetry.sdk.language": "python",
370
- "telemetry.sdk.name": "opentelemetry",
371
- "telemetry.sdk.version": "1.38.0",
372
- "service.name": "unknown_service"
373
- },
374
- "schema_url": ""
375
- }
376
- }
377
- ]
378
- }
379
- ]