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,349 @@
|
|
|
1
|
+
[
|
|
2
|
+
{
|
|
3
|
+
"trace_id": "6b5b82e4",
|
|
4
|
+
"spans": [
|
|
5
|
+
{
|
|
6
|
+
"name": "ChatGoogleGenerativeAI",
|
|
7
|
+
"context": {
|
|
8
|
+
"trace_id": "0x6b5b82e4553a591424f24a276703ba6c",
|
|
9
|
+
"span_id": "0x913a9be880378968",
|
|
10
|
+
"trace_state": "[]"
|
|
11
|
+
},
|
|
12
|
+
"kind": "SpanKind.INTERNAL",
|
|
13
|
+
"parent_id": "0x0c4c884aef99c7a6",
|
|
14
|
+
"start_time": "2025-11-25T12:40:26.132942Z",
|
|
15
|
+
"end_time": "2025-11-25T12:40:27.864602Z",
|
|
16
|
+
"status": {
|
|
17
|
+
"status_code": "OK"
|
|
18
|
+
},
|
|
19
|
+
"attributes": {
|
|
20
|
+
"input.value": "{\"messages\": [[{\"lc\": 1, \"type\": \"constructor\", \"id\": [\"langchain\", \"schema\", \"messages\", \"SystemMessage\"], \"kwargs\": {\"content\": \"You are a calculator agent.\", \"type\": \"system\"}}, {\"lc\": 1, \"type\": \"constructor\", \"id\": [\"langchain\", \"schema\", \"messages\", \"HumanMessage\"], \"kwargs\": {\"content\": \"what's the result of 1 + 1?\", \"type\": \"human\", \"id\": \"6f470619-7e4a-4c74-a137-5aa12adf8db7\"}}]]}",
|
|
21
|
+
"input.mime_type": "application/json",
|
|
22
|
+
"output.value": "{\"generations\": [[{\"text\": \"\", \"generation_info\": {\"finish_reason\": \"STOP\", \"model_name\": \"gemini-2.5-flash\", \"safety_ratings\": []}, \"type\": \"ChatGeneration\", \"message\": {\"lc\": 1, \"type\": \"constructor\", \"id\": [\"langchain\", \"schema\", \"messages\", \"AIMessage\"], \"kwargs\": {\"content\": \"\", \"additional_kwargs\": {\"function_call\": {\"name\": \"add\", \"arguments\": \"{\\\"b\\\": 1, \\\"a\\\": 1}\"}}, \"response_metadata\": {\"prompt_feedback\": {\"block_reason\": 0, \"safety_ratings\": []}, \"finish_reason\": \"STOP\", \"model_name\": \"gemini-2.5-flash\", \"safety_ratings\": [], \"model_provider\": \"google_genai\"}, \"type\": \"ai\", \"id\": \"lc_run--a8b686af-dadd-4564-a2ff-0cf69cb1ca7a-0\", \"tool_calls\": [{\"name\": \"add\", \"args\": {\"b\": 1, \"a\": 1}, \"id\": \"5e30eaea-e09b-4448-a7e6-7a90e3cc7229\", \"type\": \"tool_call\"}], \"usage_metadata\": {\"input_tokens\": 109, \"output_tokens\": 86, \"total_tokens\": 195, \"input_token_details\": {\"cache_read\": 0}, \"output_token_details\": {\"reasoning\": 68}}, \"invalid_tool_calls\": []}}}]], \"llm_output\": {\"prompt_feedback\": {\"block_reason\": 0, \"safety_ratings\": []}}, \"run\": null, \"type\": \"LLMResult\"}",
|
|
23
|
+
"output.mime_type": "application/json",
|
|
24
|
+
"llm.input_messages.0.message.role": "system",
|
|
25
|
+
"llm.input_messages.0.message.content": "You are a calculator agent.",
|
|
26
|
+
"llm.input_messages.1.message.role": "user",
|
|
27
|
+
"llm.input_messages.1.message.content": "what's the result of 1 + 1?",
|
|
28
|
+
"llm.output_messages.0.message.role": "assistant",
|
|
29
|
+
"llm.output_messages.0.message.function_call_name": "add",
|
|
30
|
+
"llm.output_messages.0.message.function_call_arguments_json": "{\"b\": 1, \"a\": 1}",
|
|
31
|
+
"llm.output_messages.0.message.tool_calls.0.tool_call.id": "5e30eaea-e09b-4448-a7e6-7a90e3cc7229",
|
|
32
|
+
"llm.output_messages.0.message.tool_calls.0.tool_call.function.name": "add",
|
|
33
|
+
"llm.output_messages.0.message.tool_calls.0.tool_call.function.arguments": "{\"b\": 1, \"a\": 1}",
|
|
34
|
+
"llm.invocation_parameters": "{\"model\": \"models/gemini-2.5-flash\", \"temperature\": 0.7, \"top_k\": null, \"n\": 1, \"safety_settings\": null, \"response_modalities\": null, \"media_resolution\": null, \"thinking_budget\": null, \"include_thoughts\": null, \"_type\": \"chat-google-generative-ai\", \"stop\": null, \"tools\": [{\"type\": \"function\", \"function\": {\"name\": \"add\", \"description\": \"Add two numbers.\", \"parameters\": {\"properties\": {\"a\": {\"type\": \"number\"}, \"b\": {\"type\": \"number\"}}, \"required\": [\"a\", \"b\"], \"type\": \"object\"}}}, {\"type\": \"function\", \"function\": {\"name\": \"multiply\", \"description\": \"Multiply two numbers.\", \"parameters\": {\"properties\": {\"a\": {\"type\": \"number\"}, \"b\": {\"type\": \"number\"}}, \"required\": [\"a\", \"b\"], \"type\": \"object\"}}}]}",
|
|
35
|
+
"llm.tools.0.tool.json_schema": "{\"type\": \"function\", \"function\": {\"name\": \"add\", \"description\": \"Add two numbers.\", \"parameters\": {\"properties\": {\"a\": {\"type\": \"number\"}, \"b\": {\"type\": \"number\"}}, \"required\": [\"a\", \"b\"], \"type\": \"object\"}}}",
|
|
36
|
+
"llm.tools.1.tool.json_schema": "{\"type\": \"function\", \"function\": {\"name\": \"multiply\", \"description\": \"Multiply two numbers.\", \"parameters\": {\"properties\": {\"a\": {\"type\": \"number\"}, \"b\": {\"type\": \"number\"}}, \"required\": [\"a\", \"b\"], \"type\": \"object\"}}}",
|
|
37
|
+
"llm.provider": "google",
|
|
38
|
+
"llm.system": "vertexai",
|
|
39
|
+
"llm.model_name": "gemini-2.5-flash",
|
|
40
|
+
"llm.token_count.prompt": 109,
|
|
41
|
+
"llm.token_count.completion": 86,
|
|
42
|
+
"llm.token_count.total": 195,
|
|
43
|
+
"llm.token_count.completion_details.reasoning": 68,
|
|
44
|
+
"llm.function_call": "{\"name\": \"add\", \"arguments\": {\"b\": 1, \"a\": 1}}",
|
|
45
|
+
"metadata": "{\"langgraph_step\": 1, \"langgraph_node\": \"model\", \"langgraph_triggers\": [\"branch:to:model\"], \"langgraph_path\": [\"__pregel_pull\", \"model\"], \"langgraph_checkpoint_ns\": \"model:b09ca29b-d9aa-25c3-f1a6-7c6389bc4d26\", \"checkpoint_ns\": \"model:b09ca29b-d9aa-25c3-f1a6-7c6389bc4d26\", \"ls_provider\": \"google_genai\", \"ls_model_name\": \"gemini-2.5-flash\", \"ls_model_type\": \"chat\", \"ls_temperature\": 0.7, \"LANGSMITH_PROJECT\": \"obs\", \"LANGSMITH_TRACING\": \"true\", \"revision_id\": \"be94bf6-dirty\"}",
|
|
46
|
+
"openinference.span.kind": "LLM"
|
|
47
|
+
},
|
|
48
|
+
"events": [],
|
|
49
|
+
"links": [],
|
|
50
|
+
"resource": {
|
|
51
|
+
"attributes": {
|
|
52
|
+
"telemetry.sdk.language": "python",
|
|
53
|
+
"telemetry.sdk.name": "opentelemetry",
|
|
54
|
+
"telemetry.sdk.version": "1.38.0",
|
|
55
|
+
"service.name": "unknown_service"
|
|
56
|
+
},
|
|
57
|
+
"schema_url": ""
|
|
58
|
+
}
|
|
59
|
+
},
|
|
60
|
+
{
|
|
61
|
+
"name": "model",
|
|
62
|
+
"context": {
|
|
63
|
+
"trace_id": "0x6b5b82e4553a591424f24a276703ba6c",
|
|
64
|
+
"span_id": "0x0c4c884aef99c7a6",
|
|
65
|
+
"trace_state": "[]"
|
|
66
|
+
},
|
|
67
|
+
"kind": "SpanKind.INTERNAL",
|
|
68
|
+
"parent_id": "0xed814208ae41ea0a",
|
|
69
|
+
"start_time": "2025-11-25T12:40:26.130355Z",
|
|
70
|
+
"end_time": "2025-11-25T12:40:27.865642Z",
|
|
71
|
+
"status": {
|
|
72
|
+
"status_code": "OK"
|
|
73
|
+
},
|
|
74
|
+
"attributes": {
|
|
75
|
+
"input.value": "{\"messages\": [{\"content\": \"what's the result of 1 + 1?\", \"additional_kwargs\": {}, \"response_metadata\": {}, \"type\": \"human\", \"name\": null, \"id\": \"6f470619-7e4a-4c74-a137-5aa12adf8db7\"}]}",
|
|
76
|
+
"input.mime_type": "application/json",
|
|
77
|
+
"output.value": "{\"messages\": [{\"content\": \"\", \"additional_kwargs\": {\"function_call\": {\"name\": \"add\", \"arguments\": \"{\\\"b\\\": 1, \\\"a\\\": 1}\"}}, \"response_metadata\": {\"prompt_feedback\": {\"block_reason\": 0, \"safety_ratings\": []}, \"finish_reason\": \"STOP\", \"model_name\": \"gemini-2.5-flash\", \"safety_ratings\": [], \"model_provider\": \"google_genai\"}, \"type\": \"ai\", \"name\": null, \"id\": \"lc_run--a8b686af-dadd-4564-a2ff-0cf69cb1ca7a-0\", \"tool_calls\": [{\"name\": \"add\", \"args\": {\"b\": 1, \"a\": 1}, \"id\": \"5e30eaea-e09b-4448-a7e6-7a90e3cc7229\", \"type\": \"tool_call\"}], \"invalid_tool_calls\": [], \"usage_metadata\": {\"input_tokens\": 109, \"output_tokens\": 86, \"total_tokens\": 195, \"input_token_details\": {\"cache_read\": 0}, \"output_token_details\": {\"reasoning\": 68}}}]}",
|
|
78
|
+
"output.mime_type": "application/json",
|
|
79
|
+
"llm.input_messages.0.message.role": "user",
|
|
80
|
+
"llm.input_messages.0.message.content": "what's the result of 1 + 1?",
|
|
81
|
+
"metadata": "{\"langgraph_step\": 1, \"langgraph_node\": \"model\", \"langgraph_triggers\": [\"branch:to:model\"], \"langgraph_path\": [\"__pregel_pull\", \"model\"], \"langgraph_checkpoint_ns\": \"model:b09ca29b-d9aa-25c3-f1a6-7c6389bc4d26\", \"LANGSMITH_PROJECT\": \"obs\", \"LANGSMITH_TRACING\": \"true\", \"revision_id\": \"be94bf6-dirty\"}",
|
|
82
|
+
"openinference.span.kind": "CHAIN"
|
|
83
|
+
},
|
|
84
|
+
"events": [],
|
|
85
|
+
"links": [],
|
|
86
|
+
"resource": {
|
|
87
|
+
"attributes": {
|
|
88
|
+
"telemetry.sdk.language": "python",
|
|
89
|
+
"telemetry.sdk.name": "opentelemetry",
|
|
90
|
+
"telemetry.sdk.version": "1.38.0",
|
|
91
|
+
"service.name": "unknown_service"
|
|
92
|
+
},
|
|
93
|
+
"schema_url": ""
|
|
94
|
+
}
|
|
95
|
+
},
|
|
96
|
+
{
|
|
97
|
+
"name": "custom_add",
|
|
98
|
+
"context": {
|
|
99
|
+
"trace_id": "0x6b5b82e4553a591424f24a276703ba6c",
|
|
100
|
+
"span_id": "0x1e949d95e378f08c",
|
|
101
|
+
"trace_state": "[]"
|
|
102
|
+
},
|
|
103
|
+
"kind": "SpanKind.INTERNAL",
|
|
104
|
+
"parent_id": "0x617e8a5ab69e19c2",
|
|
105
|
+
"start_time": "2025-11-25T12:40:27.867027Z",
|
|
106
|
+
"end_time": "2025-11-25T12:40:27.867043Z",
|
|
107
|
+
"status": {
|
|
108
|
+
"status_code": "UNSET"
|
|
109
|
+
},
|
|
110
|
+
"attributes": {},
|
|
111
|
+
"events": [],
|
|
112
|
+
"links": [],
|
|
113
|
+
"resource": {
|
|
114
|
+
"attributes": {
|
|
115
|
+
"telemetry.sdk.language": "python",
|
|
116
|
+
"telemetry.sdk.name": "opentelemetry",
|
|
117
|
+
"telemetry.sdk.version": "1.38.0",
|
|
118
|
+
"service.name": "unknown_service"
|
|
119
|
+
},
|
|
120
|
+
"schema_url": ""
|
|
121
|
+
}
|
|
122
|
+
},
|
|
123
|
+
{
|
|
124
|
+
"name": "add",
|
|
125
|
+
"context": {
|
|
126
|
+
"trace_id": "0x6b5b82e4553a591424f24a276703ba6c",
|
|
127
|
+
"span_id": "0xd1ccea5c3e8a033e",
|
|
128
|
+
"trace_state": "[]"
|
|
129
|
+
},
|
|
130
|
+
"kind": "SpanKind.INTERNAL",
|
|
131
|
+
"parent_id": "0x27ad937b5f87c480",
|
|
132
|
+
"start_time": "2025-11-25T12:40:27.866668Z",
|
|
133
|
+
"end_time": "2025-11-25T12:40:27.867083Z",
|
|
134
|
+
"status": {
|
|
135
|
+
"status_code": "OK"
|
|
136
|
+
},
|
|
137
|
+
"attributes": {
|
|
138
|
+
"input.value": "{'b': 1, 'a': 1}",
|
|
139
|
+
"output.value": "{\"content\": \"2.0\", \"additional_kwargs\": {}, \"response_metadata\": {}, \"type\": \"tool\", \"name\": \"add\", \"id\": null, \"tool_call_id\": \"5e30eaea-e09b-4448-a7e6-7a90e3cc7229\", \"artifact\": null, \"status\": \"success\"}",
|
|
140
|
+
"output.mime_type": "application/json",
|
|
141
|
+
"tool.name": "add",
|
|
142
|
+
"tool.description": "Add two numbers.",
|
|
143
|
+
"metadata": "{\"langgraph_step\": 2, \"langgraph_node\": \"tools\", \"langgraph_triggers\": [\"__pregel_push\"], \"langgraph_path\": [\"__pregel_push\", 0, false], \"langgraph_checkpoint_ns\": \"tools:2925cccf-3a9a-f8b3-792a-88f3f1331ce7\", \"checkpoint_ns\": \"tools:2925cccf-3a9a-f8b3-792a-88f3f1331ce7\"}",
|
|
144
|
+
"openinference.span.kind": "TOOL"
|
|
145
|
+
},
|
|
146
|
+
"events": [],
|
|
147
|
+
"links": [],
|
|
148
|
+
"resource": {
|
|
149
|
+
"attributes": {
|
|
150
|
+
"telemetry.sdk.language": "python",
|
|
151
|
+
"telemetry.sdk.name": "opentelemetry",
|
|
152
|
+
"telemetry.sdk.version": "1.38.0",
|
|
153
|
+
"service.name": "unknown_service"
|
|
154
|
+
},
|
|
155
|
+
"schema_url": ""
|
|
156
|
+
}
|
|
157
|
+
},
|
|
158
|
+
{
|
|
159
|
+
"name": "tools",
|
|
160
|
+
"context": {
|
|
161
|
+
"trace_id": "0x6b5b82e4553a591424f24a276703ba6c",
|
|
162
|
+
"span_id": "0x27ad937b5f87c480",
|
|
163
|
+
"trace_state": "[]"
|
|
164
|
+
},
|
|
165
|
+
"kind": "SpanKind.INTERNAL",
|
|
166
|
+
"parent_id": "0xed814208ae41ea0a",
|
|
167
|
+
"start_time": "2025-11-25T12:40:27.866333Z",
|
|
168
|
+
"end_time": "2025-11-25T12:40:27.867475Z",
|
|
169
|
+
"status": {
|
|
170
|
+
"status_code": "OK"
|
|
171
|
+
},
|
|
172
|
+
"attributes": {
|
|
173
|
+
"input.value": "{\"__type\": \"tool_call_with_context\", \"tool_call\": {\"name\": \"add\", \"args\": {\"b\": 1, \"a\": 1}, \"id\": \"5e30eaea-e09b-4448-a7e6-7a90e3cc7229\", \"type\": \"tool_call\"}, \"state\": {\"messages\": [{\"content\": \"what's the result of 1 + 1?\", \"additional_kwargs\": {}, \"response_metadata\": {}, \"type\": \"human\", \"name\": null, \"id\": \"6f470619-7e4a-4c74-a137-5aa12adf8db7\"}, {\"content\": \"\", \"additional_kwargs\": {\"function_call\": {\"name\": \"add\", \"arguments\": \"{\\\"b\\\": 1, \\\"a\\\": 1}\"}}, \"response_metadata\": {\"prompt_feedback\": {\"block_reason\": 0, \"safety_ratings\": []}, \"finish_reason\": \"STOP\", \"model_name\": \"gemini-2.5-flash\", \"safety_ratings\": [], \"model_provider\": \"google_genai\"}, \"type\": \"ai\", \"name\": null, \"id\": \"lc_run--a8b686af-dadd-4564-a2ff-0cf69cb1ca7a-0\", \"tool_calls\": [{\"name\": \"add\", \"args\": {\"b\": 1, \"a\": 1}, \"id\": \"5e30eaea-e09b-4448-a7e6-7a90e3cc7229\", \"type\": \"tool_call\"}], \"invalid_tool_calls\": [], \"usage_metadata\": {\"input_tokens\": 109, \"output_tokens\": 86, \"total_tokens\": 195, \"input_token_details\": {\"cache_read\": 0}, \"output_token_details\": {\"reasoning\": 68}}}]}}",
|
|
174
|
+
"input.mime_type": "application/json",
|
|
175
|
+
"output.value": "{\"messages\": [{\"content\": \"2.0\", \"additional_kwargs\": {}, \"response_metadata\": {}, \"type\": \"tool\", \"name\": \"add\", \"id\": \"cd891e63-90bb-47b2-91f3-0e0d2af204de\", \"tool_call_id\": \"5e30eaea-e09b-4448-a7e6-7a90e3cc7229\", \"artifact\": null, \"status\": \"success\"}]}",
|
|
176
|
+
"output.mime_type": "application/json",
|
|
177
|
+
"metadata": "{\"langgraph_step\": 2, \"langgraph_node\": \"tools\", \"langgraph_triggers\": [\"__pregel_push\"], \"langgraph_path\": [\"__pregel_push\", 0, false], \"langgraph_checkpoint_ns\": \"tools:2925cccf-3a9a-f8b3-792a-88f3f1331ce7\", \"LANGSMITH_PROJECT\": \"obs\", \"LANGSMITH_TRACING\": \"true\", \"revision_id\": \"be94bf6-dirty\"}",
|
|
178
|
+
"openinference.span.kind": "CHAIN"
|
|
179
|
+
},
|
|
180
|
+
"events": [],
|
|
181
|
+
"links": [],
|
|
182
|
+
"resource": {
|
|
183
|
+
"attributes": {
|
|
184
|
+
"telemetry.sdk.language": "python",
|
|
185
|
+
"telemetry.sdk.name": "opentelemetry",
|
|
186
|
+
"telemetry.sdk.version": "1.38.0",
|
|
187
|
+
"service.name": "unknown_service"
|
|
188
|
+
},
|
|
189
|
+
"schema_url": ""
|
|
190
|
+
}
|
|
191
|
+
},
|
|
192
|
+
{
|
|
193
|
+
"name": "ChatGoogleGenerativeAI",
|
|
194
|
+
"context": {
|
|
195
|
+
"trace_id": "0x6b5b82e4553a591424f24a276703ba6c",
|
|
196
|
+
"span_id": "0xa9202e0f63b17025",
|
|
197
|
+
"trace_state": "[]"
|
|
198
|
+
},
|
|
199
|
+
"kind": "SpanKind.INTERNAL",
|
|
200
|
+
"parent_id": "0x685c3c60e6322549",
|
|
201
|
+
"start_time": "2025-11-25T12:40:27.870288Z",
|
|
202
|
+
"end_time": "2025-11-25T12:40:28.881059Z",
|
|
203
|
+
"status": {
|
|
204
|
+
"status_code": "OK"
|
|
205
|
+
},
|
|
206
|
+
"attributes": {
|
|
207
|
+
"input.value": "{\"messages\": [[{\"lc\": 1, \"type\": \"constructor\", \"id\": [\"langchain\", \"schema\", \"messages\", \"SystemMessage\"], \"kwargs\": {\"content\": \"You are a calculator agent.\", \"type\": \"system\"}}, {\"lc\": 1, \"type\": \"constructor\", \"id\": [\"langchain\", \"schema\", \"messages\", \"HumanMessage\"], \"kwargs\": {\"content\": \"what's the result of 1 + 1?\", \"type\": \"human\", \"id\": \"6f470619-7e4a-4c74-a137-5aa12adf8db7\"}}, {\"lc\": 1, \"type\": \"constructor\", \"id\": [\"langchain\", \"schema\", \"messages\", \"AIMessage\"], \"kwargs\": {\"content\": \"\", \"additional_kwargs\": {\"function_call\": {\"name\": \"add\", \"arguments\": \"{\\\"b\\\": 1, \\\"a\\\": 1}\"}}, \"response_metadata\": {\"prompt_feedback\": {\"block_reason\": 0, \"safety_ratings\": []}, \"finish_reason\": \"STOP\", \"model_name\": \"gemini-2.5-flash\", \"safety_ratings\": [], \"model_provider\": \"google_genai\"}, \"type\": \"ai\", \"id\": \"lc_run--a8b686af-dadd-4564-a2ff-0cf69cb1ca7a-0\", \"tool_calls\": [{\"name\": \"add\", \"args\": {\"b\": 1, \"a\": 1}, \"id\": \"5e30eaea-e09b-4448-a7e6-7a90e3cc7229\", \"type\": \"tool_call\"}], \"usage_metadata\": {\"input_tokens\": 109, \"output_tokens\": 86, \"total_tokens\": 195, \"input_token_details\": {\"cache_read\": 0}, \"output_token_details\": {\"reasoning\": 68}}, \"invalid_tool_calls\": []}}, {\"lc\": 1, \"type\": \"constructor\", \"id\": [\"langchain\", \"schema\", \"messages\", \"ToolMessage\"], \"kwargs\": {\"content\": \"2.0\", \"type\": \"tool\", \"name\": \"add\", \"id\": \"cd891e63-90bb-47b2-91f3-0e0d2af204de\", \"tool_call_id\": \"5e30eaea-e09b-4448-a7e6-7a90e3cc7229\", \"status\": \"success\"}}]]}",
|
|
208
|
+
"input.mime_type": "application/json",
|
|
209
|
+
"output.value": "{\"generations\": [[{\"text\": \"The result of 1 + 1 is 2.\", \"generation_info\": {\"finish_reason\": \"STOP\", \"model_name\": \"gemini-2.5-flash\", \"safety_ratings\": []}, \"type\": \"ChatGeneration\", \"message\": {\"lc\": 1, \"type\": \"constructor\", \"id\": [\"langchain\", \"schema\", \"messages\", \"AIMessage\"], \"kwargs\": {\"content\": \"The result of 1 + 1 is 2.\", \"response_metadata\": {\"prompt_feedback\": {\"block_reason\": 0, \"safety_ratings\": []}, \"finish_reason\": \"STOP\", \"model_name\": \"gemini-2.5-flash\", \"safety_ratings\": [], \"model_provider\": \"google_genai\"}, \"type\": \"ai\", \"id\": \"lc_run--26170f62-97f7-4eff-9c3b-cfc3139728b1-0\", \"usage_metadata\": {\"input_tokens\": 140, \"output_tokens\": 12, \"total_tokens\": 152, \"input_token_details\": {\"cache_read\": 0}}, \"tool_calls\": [], \"invalid_tool_calls\": []}}}]], \"llm_output\": {\"prompt_feedback\": {\"block_reason\": 0, \"safety_ratings\": []}}, \"run\": null, \"type\": \"LLMResult\"}",
|
|
210
|
+
"output.mime_type": "application/json",
|
|
211
|
+
"llm.input_messages.0.message.role": "system",
|
|
212
|
+
"llm.input_messages.0.message.content": "You are a calculator agent.",
|
|
213
|
+
"llm.input_messages.1.message.role": "user",
|
|
214
|
+
"llm.input_messages.1.message.content": "what's the result of 1 + 1?",
|
|
215
|
+
"llm.input_messages.2.message.role": "assistant",
|
|
216
|
+
"llm.input_messages.2.message.function_call_name": "add",
|
|
217
|
+
"llm.input_messages.2.message.function_call_arguments_json": "{\"b\": 1, \"a\": 1}",
|
|
218
|
+
"llm.input_messages.2.message.tool_calls.0.tool_call.id": "5e30eaea-e09b-4448-a7e6-7a90e3cc7229",
|
|
219
|
+
"llm.input_messages.2.message.tool_calls.0.tool_call.function.name": "add",
|
|
220
|
+
"llm.input_messages.2.message.tool_calls.0.tool_call.function.arguments": "{\"b\": 1, \"a\": 1}",
|
|
221
|
+
"llm.input_messages.3.message.role": "tool",
|
|
222
|
+
"llm.input_messages.3.message.content": "2.0",
|
|
223
|
+
"llm.input_messages.3.message.tool_call_id": "5e30eaea-e09b-4448-a7e6-7a90e3cc7229",
|
|
224
|
+
"llm.input_messages.3.message.name": "add",
|
|
225
|
+
"llm.output_messages.0.message.role": "assistant",
|
|
226
|
+
"llm.output_messages.0.message.content": "The result of 1 + 1 is 2.",
|
|
227
|
+
"llm.invocation_parameters": "{\"model\": \"models/gemini-2.5-flash\", \"temperature\": 0.7, \"top_k\": null, \"n\": 1, \"safety_settings\": null, \"response_modalities\": null, \"media_resolution\": null, \"thinking_budget\": null, \"include_thoughts\": null, \"_type\": \"chat-google-generative-ai\", \"stop\": null, \"tools\": [{\"type\": \"function\", \"function\": {\"name\": \"add\", \"description\": \"Add two numbers.\", \"parameters\": {\"properties\": {\"a\": {\"type\": \"number\"}, \"b\": {\"type\": \"number\"}}, \"required\": [\"a\", \"b\"], \"type\": \"object\"}}}, {\"type\": \"function\", \"function\": {\"name\": \"multiply\", \"description\": \"Multiply two numbers.\", \"parameters\": {\"properties\": {\"a\": {\"type\": \"number\"}, \"b\": {\"type\": \"number\"}}, \"required\": [\"a\", \"b\"], \"type\": \"object\"}}}]}",
|
|
228
|
+
"llm.tools.0.tool.json_schema": "{\"type\": \"function\", \"function\": {\"name\": \"add\", \"description\": \"Add two numbers.\", \"parameters\": {\"properties\": {\"a\": {\"type\": \"number\"}, \"b\": {\"type\": \"number\"}}, \"required\": [\"a\", \"b\"], \"type\": \"object\"}}}",
|
|
229
|
+
"llm.tools.1.tool.json_schema": "{\"type\": \"function\", \"function\": {\"name\": \"multiply\", \"description\": \"Multiply two numbers.\", \"parameters\": {\"properties\": {\"a\": {\"type\": \"number\"}, \"b\": {\"type\": \"number\"}}, \"required\": [\"a\", \"b\"], \"type\": \"object\"}}}",
|
|
230
|
+
"llm.provider": "google",
|
|
231
|
+
"llm.system": "vertexai",
|
|
232
|
+
"llm.model_name": "gemini-2.5-flash",
|
|
233
|
+
"llm.token_count.prompt": 140,
|
|
234
|
+
"llm.token_count.completion": 12,
|
|
235
|
+
"llm.token_count.total": 152,
|
|
236
|
+
"metadata": "{\"langgraph_step\": 3, \"langgraph_node\": \"model\", \"langgraph_triggers\": [\"branch:to:model\"], \"langgraph_path\": [\"__pregel_pull\", \"model\"], \"langgraph_checkpoint_ns\": \"model:4104e152-00c5-1205-6370-d8adaccd5338\", \"checkpoint_ns\": \"model:4104e152-00c5-1205-6370-d8adaccd5338\", \"ls_provider\": \"google_genai\", \"ls_model_name\": \"gemini-2.5-flash\", \"ls_model_type\": \"chat\", \"ls_temperature\": 0.7, \"LANGSMITH_PROJECT\": \"obs\", \"LANGSMITH_TRACING\": \"true\", \"revision_id\": \"be94bf6-dirty\"}",
|
|
237
|
+
"openinference.span.kind": "LLM"
|
|
238
|
+
},
|
|
239
|
+
"events": [],
|
|
240
|
+
"links": [],
|
|
241
|
+
"resource": {
|
|
242
|
+
"attributes": {
|
|
243
|
+
"telemetry.sdk.language": "python",
|
|
244
|
+
"telemetry.sdk.name": "opentelemetry",
|
|
245
|
+
"telemetry.sdk.version": "1.38.0",
|
|
246
|
+
"service.name": "unknown_service"
|
|
247
|
+
},
|
|
248
|
+
"schema_url": ""
|
|
249
|
+
}
|
|
250
|
+
},
|
|
251
|
+
{
|
|
252
|
+
"name": "model",
|
|
253
|
+
"context": {
|
|
254
|
+
"trace_id": "0x6b5b82e4553a591424f24a276703ba6c",
|
|
255
|
+
"span_id": "0x685c3c60e6322549",
|
|
256
|
+
"trace_state": "[]"
|
|
257
|
+
},
|
|
258
|
+
"kind": "SpanKind.INTERNAL",
|
|
259
|
+
"parent_id": "0xed814208ae41ea0a",
|
|
260
|
+
"start_time": "2025-11-25T12:40:27.867918Z",
|
|
261
|
+
"end_time": "2025-11-25T12:40:28.882022Z",
|
|
262
|
+
"status": {
|
|
263
|
+
"status_code": "OK"
|
|
264
|
+
},
|
|
265
|
+
"attributes": {
|
|
266
|
+
"input.value": "{\"messages\": [{\"content\": \"what's the result of 1 + 1?\", \"additional_kwargs\": {}, \"response_metadata\": {}, \"type\": \"human\", \"name\": null, \"id\": \"6f470619-7e4a-4c74-a137-5aa12adf8db7\"}, {\"content\": \"\", \"additional_kwargs\": {\"function_call\": {\"name\": \"add\", \"arguments\": \"{\\\"b\\\": 1, \\\"a\\\": 1}\"}}, \"response_metadata\": {\"prompt_feedback\": {\"block_reason\": 0, \"safety_ratings\": []}, \"finish_reason\": \"STOP\", \"model_name\": \"gemini-2.5-flash\", \"safety_ratings\": [], \"model_provider\": \"google_genai\"}, \"type\": \"ai\", \"name\": null, \"id\": \"lc_run--a8b686af-dadd-4564-a2ff-0cf69cb1ca7a-0\", \"tool_calls\": [{\"name\": \"add\", \"args\": {\"b\": 1, \"a\": 1}, \"id\": \"5e30eaea-e09b-4448-a7e6-7a90e3cc7229\", \"type\": \"tool_call\"}], \"invalid_tool_calls\": [], \"usage_metadata\": {\"input_tokens\": 109, \"output_tokens\": 86, \"total_tokens\": 195, \"input_token_details\": {\"cache_read\": 0}, \"output_token_details\": {\"reasoning\": 68}}}, {\"content\": \"2.0\", \"additional_kwargs\": {}, \"response_metadata\": {}, \"type\": \"tool\", \"name\": \"add\", \"id\": \"cd891e63-90bb-47b2-91f3-0e0d2af204de\", \"tool_call_id\": \"5e30eaea-e09b-4448-a7e6-7a90e3cc7229\", \"artifact\": null, \"status\": \"success\"}]}",
|
|
267
|
+
"input.mime_type": "application/json",
|
|
268
|
+
"output.value": "{\"messages\": [{\"content\": \"The result of 1 + 1 is 2.\", \"additional_kwargs\": {}, \"response_metadata\": {\"prompt_feedback\": {\"block_reason\": 0, \"safety_ratings\": []}, \"finish_reason\": \"STOP\", \"model_name\": \"gemini-2.5-flash\", \"safety_ratings\": [], \"model_provider\": \"google_genai\"}, \"type\": \"ai\", \"name\": null, \"id\": \"lc_run--26170f62-97f7-4eff-9c3b-cfc3139728b1-0\", \"tool_calls\": [], \"invalid_tool_calls\": [], \"usage_metadata\": {\"input_tokens\": 140, \"output_tokens\": 12, \"total_tokens\": 152, \"input_token_details\": {\"cache_read\": 0}}}]}",
|
|
269
|
+
"output.mime_type": "application/json",
|
|
270
|
+
"llm.input_messages.0.message.role": "user",
|
|
271
|
+
"llm.input_messages.0.message.content": "what's the result of 1 + 1?",
|
|
272
|
+
"metadata": "{\"langgraph_step\": 3, \"langgraph_node\": \"model\", \"langgraph_triggers\": [\"branch:to:model\"], \"langgraph_path\": [\"__pregel_pull\", \"model\"], \"langgraph_checkpoint_ns\": \"model:4104e152-00c5-1205-6370-d8adaccd5338\", \"LANGSMITH_PROJECT\": \"obs\", \"LANGSMITH_TRACING\": \"true\", \"revision_id\": \"be94bf6-dirty\"}",
|
|
273
|
+
"openinference.span.kind": "CHAIN"
|
|
274
|
+
},
|
|
275
|
+
"events": [],
|
|
276
|
+
"links": [],
|
|
277
|
+
"resource": {
|
|
278
|
+
"attributes": {
|
|
279
|
+
"telemetry.sdk.language": "python",
|
|
280
|
+
"telemetry.sdk.name": "opentelemetry",
|
|
281
|
+
"telemetry.sdk.version": "1.38.0",
|
|
282
|
+
"service.name": "unknown_service"
|
|
283
|
+
},
|
|
284
|
+
"schema_url": ""
|
|
285
|
+
}
|
|
286
|
+
},
|
|
287
|
+
{
|
|
288
|
+
"name": "calculator_agent",
|
|
289
|
+
"context": {
|
|
290
|
+
"trace_id": "0x6b5b82e4553a591424f24a276703ba6c",
|
|
291
|
+
"span_id": "0xed814208ae41ea0a",
|
|
292
|
+
"trace_state": "[]"
|
|
293
|
+
},
|
|
294
|
+
"kind": "SpanKind.INTERNAL",
|
|
295
|
+
"parent_id": "0x617e8a5ab69e19c2",
|
|
296
|
+
"start_time": "2025-11-25T12:40:26.128633Z",
|
|
297
|
+
"end_time": "2025-11-25T12:40:28.882663Z",
|
|
298
|
+
"status": {
|
|
299
|
+
"status_code": "OK"
|
|
300
|
+
},
|
|
301
|
+
"attributes": {
|
|
302
|
+
"input.value": "{\"messages\": [{\"role\": \"user\", \"content\": \"what's the result of 1 + 1?\"}]}",
|
|
303
|
+
"input.mime_type": "application/json",
|
|
304
|
+
"output.value": "{\"messages\": [{\"content\": \"what's the result of 1 + 1?\", \"additional_kwargs\": {}, \"response_metadata\": {}, \"type\": \"human\", \"name\": null, \"id\": \"6f470619-7e4a-4c74-a137-5aa12adf8db7\"}, {\"content\": \"\", \"additional_kwargs\": {\"function_call\": {\"name\": \"add\", \"arguments\": \"{\\\"b\\\": 1, \\\"a\\\": 1}\"}}, \"response_metadata\": {\"prompt_feedback\": {\"block_reason\": 0, \"safety_ratings\": []}, \"finish_reason\": \"STOP\", \"model_name\": \"gemini-2.5-flash\", \"safety_ratings\": [], \"model_provider\": \"google_genai\"}, \"type\": \"ai\", \"name\": null, \"id\": \"lc_run--a8b686af-dadd-4564-a2ff-0cf69cb1ca7a-0\", \"tool_calls\": [{\"name\": \"add\", \"args\": {\"b\": 1, \"a\": 1}, \"id\": \"5e30eaea-e09b-4448-a7e6-7a90e3cc7229\", \"type\": \"tool_call\"}], \"invalid_tool_calls\": [], \"usage_metadata\": {\"input_tokens\": 109, \"output_tokens\": 86, \"total_tokens\": 195, \"input_token_details\": {\"cache_read\": 0}, \"output_token_details\": {\"reasoning\": 68}}}, {\"content\": \"2.0\", \"additional_kwargs\": {}, \"response_metadata\": {}, \"type\": \"tool\", \"name\": \"add\", \"id\": \"cd891e63-90bb-47b2-91f3-0e0d2af204de\", \"tool_call_id\": \"5e30eaea-e09b-4448-a7e6-7a90e3cc7229\", \"artifact\": null, \"status\": \"success\"}, {\"content\": \"The result of 1 + 1 is 2.\", \"additional_kwargs\": {}, \"response_metadata\": {\"prompt_feedback\": {\"block_reason\": 0, \"safety_ratings\": []}, \"finish_reason\": \"STOP\", \"model_name\": \"gemini-2.5-flash\", \"safety_ratings\": [], \"model_provider\": \"google_genai\"}, \"type\": \"ai\", \"name\": null, \"id\": \"lc_run--26170f62-97f7-4eff-9c3b-cfc3139728b1-0\", \"tool_calls\": [], \"invalid_tool_calls\": [], \"usage_metadata\": {\"input_tokens\": 140, \"output_tokens\": 12, \"total_tokens\": 152, \"input_token_details\": {\"cache_read\": 0}}}]}",
|
|
305
|
+
"output.mime_type": "application/json",
|
|
306
|
+
"openinference.span.kind": "AGENT"
|
|
307
|
+
},
|
|
308
|
+
"events": [],
|
|
309
|
+
"links": [],
|
|
310
|
+
"resource": {
|
|
311
|
+
"attributes": {
|
|
312
|
+
"telemetry.sdk.language": "python",
|
|
313
|
+
"telemetry.sdk.name": "opentelemetry",
|
|
314
|
+
"telemetry.sdk.version": "1.38.0",
|
|
315
|
+
"service.name": "unknown_service"
|
|
316
|
+
},
|
|
317
|
+
"schema_url": ""
|
|
318
|
+
}
|
|
319
|
+
},
|
|
320
|
+
{
|
|
321
|
+
"name": "quraite/testcase-1",
|
|
322
|
+
"context": {
|
|
323
|
+
"trace_id": "0x6b5b82e4553a591424f24a276703ba6c",
|
|
324
|
+
"span_id": "0x617e8a5ab69e19c2",
|
|
325
|
+
"trace_state": "[]"
|
|
326
|
+
},
|
|
327
|
+
"kind": "SpanKind.INTERNAL",
|
|
328
|
+
"parent_id": null,
|
|
329
|
+
"start_time": "2025-11-25T12:40:26.107375Z",
|
|
330
|
+
"end_time": "2025-11-25T12:40:28.882940Z",
|
|
331
|
+
"status": {
|
|
332
|
+
"status_code": "UNSET"
|
|
333
|
+
},
|
|
334
|
+
"attributes": {},
|
|
335
|
+
"events": [],
|
|
336
|
+
"links": [],
|
|
337
|
+
"resource": {
|
|
338
|
+
"attributes": {
|
|
339
|
+
"telemetry.sdk.language": "python",
|
|
340
|
+
"telemetry.sdk.name": "opentelemetry",
|
|
341
|
+
"telemetry.sdk.version": "1.38.0",
|
|
342
|
+
"service.name": "unknown_service"
|
|
343
|
+
},
|
|
344
|
+
"schema_url": ""
|
|
345
|
+
}
|
|
346
|
+
}
|
|
347
|
+
]
|
|
348
|
+
}
|
|
349
|
+
]
|