trodo-python 2.10.10__tar.gz → 2.10.11__tar.gz
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.
- {trodo_python-2.10.10 → trodo_python-2.10.11}/PKG-INFO +1 -1
- {trodo_python-2.10.10 → trodo_python-2.10.11}/pyproject.toml +1 -1
- {trodo_python-2.10.10 → trodo_python-2.10.11}/tests/test_auto_instrument_fixes.py +12 -0
- {trodo_python-2.10.10 → trodo_python-2.10.11}/trodo/__init__.py +1 -1
- {trodo_python-2.10.10 → trodo_python-2.10.11}/trodo/otel/auto_instrument.py +3 -2
- {trodo_python-2.10.10 → trodo_python-2.10.11}/trodo_python.egg-info/PKG-INFO +1 -1
- {trodo_python-2.10.10 → trodo_python-2.10.11}/README.md +0 -0
- {trodo_python-2.10.10 → trodo_python-2.10.11}/setup.cfg +0 -0
- {trodo_python-2.10.10 → trodo_python-2.10.11}/tests/test_anon_distinct_id 2.py +0 -0
- {trodo_python-2.10.10 → trodo_python-2.10.11}/tests/test_anon_distinct_id.py +0 -0
- {trodo_python-2.10.10 → trodo_python-2.10.11}/tests/test_cross_process_session.py +0 -0
- {trodo_python-2.10.10 → trodo_python-2.10.11}/tests/test_end_run.py +0 -0
- {trodo_python-2.10.10 → trodo_python-2.10.11}/tests/test_error_enrichment.py +0 -0
- {trodo_python-2.10.10 → trodo_python-2.10.11}/tests/test_llm_usage_cost.py +0 -0
- {trodo_python-2.10.10 → trodo_python-2.10.11}/tests/test_processor_methods.py +0 -0
- {trodo_python-2.10.10 → trodo_python-2.10.11}/tests/test_register_otel.py +0 -0
- {trodo_python-2.10.10 → trodo_python-2.10.11}/tests/test_start_run.py +0 -0
- {trodo_python-2.10.10 → trodo_python-2.10.11}/tests/test_wrap_agent_unchanged.py +0 -0
- {trodo_python-2.10.10 → trodo_python-2.10.11}/trodo/api/__init__.py +0 -0
- {trodo_python-2.10.10 → trodo_python-2.10.11}/trodo/api/async_client.py +0 -0
- {trodo_python-2.10.10 → trodo_python-2.10.11}/trodo/api/endpoints.py +0 -0
- {trodo_python-2.10.10 → trodo_python-2.10.11}/trodo/api/http_client.py +0 -0
- {trodo_python-2.10.10 → trodo_python-2.10.11}/trodo/auto/__init__.py +0 -0
- {trodo_python-2.10.10 → trodo_python-2.10.11}/trodo/auto/auto_event_manager.py +0 -0
- {trodo_python-2.10.10 → trodo_python-2.10.11}/trodo/client.py +0 -0
- {trodo_python-2.10.10 → trodo_python-2.10.11}/trodo/managers/__init__.py +0 -0
- {trodo_python-2.10.10 → trodo_python-2.10.11}/trodo/managers/group_manager.py +0 -0
- {trodo_python-2.10.10 → trodo_python-2.10.11}/trodo/managers/people_manager.py +0 -0
- {trodo_python-2.10.10 → trodo_python-2.10.11}/trodo/otel/__init__.py +0 -0
- {trodo_python-2.10.10 → trodo_python-2.10.11}/trodo/otel/context.py +0 -0
- {trodo_python-2.10.10 → trodo_python-2.10.11}/trodo/otel/helpers.py +0 -0
- {trodo_python-2.10.10 → trodo_python-2.10.11}/trodo/otel/processor.py +0 -0
- {trodo_python-2.10.10 → trodo_python-2.10.11}/trodo/otel/register.py +0 -0
- {trodo_python-2.10.10 → trodo_python-2.10.11}/trodo/otel/transport.py +0 -0
- {trodo_python-2.10.10 → trodo_python-2.10.11}/trodo/otel/wrap_agent.py +0 -0
- {trodo_python-2.10.10 → trodo_python-2.10.11}/trodo/queue/__init__.py +0 -0
- {trodo_python-2.10.10 → trodo_python-2.10.11}/trodo/queue/batch_flusher.py +0 -0
- {trodo_python-2.10.10 → trodo_python-2.10.11}/trodo/queue/event_queue.py +0 -0
- {trodo_python-2.10.10 → trodo_python-2.10.11}/trodo/session/__init__.py +0 -0
- {trodo_python-2.10.10 → trodo_python-2.10.11}/trodo/session/server_session.py +0 -0
- {trodo_python-2.10.10 → trodo_python-2.10.11}/trodo/session/session_manager.py +0 -0
- {trodo_python-2.10.10 → trodo_python-2.10.11}/trodo/types.py +0 -0
- {trodo_python-2.10.10 → trodo_python-2.10.11}/trodo/user_context.py +0 -0
- {trodo_python-2.10.10 → trodo_python-2.10.11}/trodo_python.egg-info/SOURCES.txt +0 -0
- {trodo_python-2.10.10 → trodo_python-2.10.11}/trodo_python.egg-info/dependency_links.txt +0 -0
- {trodo_python-2.10.10 → trodo_python-2.10.11}/trodo_python.egg-info/requires.txt +0 -0
- {trodo_python-2.10.10 → trodo_python-2.10.11}/trodo_python.egg-info/top_level.txt +0 -0
|
@@ -208,6 +208,18 @@ class TestCrossConventionContent:
|
|
|
208
208
|
}))
|
|
209
209
|
assert "create_object" in s.output
|
|
210
210
|
|
|
211
|
+
def test_vercel_v7_execute_tool(self):
|
|
212
|
+
s = otel_span_to_trodo_span(self._span({
|
|
213
|
+
"gen_ai.operation.name": "execute_tool",
|
|
214
|
+
"gen_ai.tool.name": "getWeather",
|
|
215
|
+
"gen_ai.tool.call.arguments": '{"city":"NYC"}',
|
|
216
|
+
"gen_ai.tool.call.result": '{"city":"NYC","tempC":22}',
|
|
217
|
+
}))
|
|
218
|
+
assert s.kind == "tool"
|
|
219
|
+
assert s.tool_name == "getWeather"
|
|
220
|
+
assert s.input == '{"city":"NYC"}'
|
|
221
|
+
assert "tempC" in s.output
|
|
222
|
+
|
|
211
223
|
def test_langfuse_traceloop_single(self):
|
|
212
224
|
s = otel_span_to_trodo_span(self._span({
|
|
213
225
|
"langfuse.observation.input": "user asked X",
|
|
@@ -82,13 +82,14 @@ _ATTR_TRODO_PARENT_SPAN_ID = "trodo.parent_span_id"
|
|
|
82
82
|
_INPUT_SINGLE_KEYS = [
|
|
83
83
|
"gen_ai.input.messages", "ai.prompt.messages", "ai.prompt", "gen_ai.prompt",
|
|
84
84
|
"input.value", "traceloop.entity.input", "langfuse.observation.input", "mlflow.spanInputs",
|
|
85
|
-
"llm.input_messages", "llm.prompts", "gen_ai.tool.input", "
|
|
85
|
+
"llm.input_messages", "llm.prompts", "gen_ai.tool.input", "gen_ai.tool.call.arguments",
|
|
86
|
+
"ai.toolCall.args", "input", "prompt",
|
|
86
87
|
]
|
|
87
88
|
_OUTPUT_SINGLE_KEYS = [
|
|
88
89
|
"gen_ai.output.messages", "ai.response.text", "ai.response.object", "ai.response.toolCalls",
|
|
89
90
|
"gen_ai.completion", "output.value", "traceloop.entity.output", "langfuse.observation.output",
|
|
90
91
|
"mlflow.spanOutputs", "llm.output_messages", "llm.completions", "gen_ai.tool.output",
|
|
91
|
-
"ai.toolCall.result", "output", "completion",
|
|
92
|
+
"gen_ai.tool.call.result", "ai.toolCall.result", "output", "completion",
|
|
92
93
|
]
|
|
93
94
|
_INPUT_INDEXED_BASES = ["gen_ai.prompt", "llm.input_messages"]
|
|
94
95
|
_OUTPUT_INDEXED_BASES = ["gen_ai.completion", "llm.output_messages"]
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|