hivetrace 1.3.12__tar.gz → 1.3.13__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.
- {hivetrace-1.3.12 → hivetrace-1.3.13}/PKG-INFO +1 -1
- {hivetrace-1.3.12 → hivetrace-1.3.13}/hivetrace/client/async_client.py +6 -2
- {hivetrace-1.3.12 → hivetrace-1.3.13}/hivetrace/client/base.py +4 -0
- {hivetrace-1.3.12 → hivetrace-1.3.13}/hivetrace/client/sync_client.py +6 -2
- {hivetrace-1.3.12 → hivetrace-1.3.13}/hivetrace.egg-info/PKG-INFO +1 -1
- {hivetrace-1.3.12 → hivetrace-1.3.13}/setup.py +1 -1
- {hivetrace-1.3.12 → hivetrace-1.3.13}/LICENSE +0 -0
- {hivetrace-1.3.12 → hivetrace-1.3.13}/README.md +0 -0
- {hivetrace-1.3.12 → hivetrace-1.3.13}/hivetrace/__init__.py +0 -0
- {hivetrace-1.3.12 → hivetrace-1.3.13}/hivetrace/adapters/__init__.py +0 -0
- {hivetrace-1.3.12 → hivetrace-1.3.13}/hivetrace/adapters/base_adapter.py +0 -0
- {hivetrace-1.3.12 → hivetrace-1.3.13}/hivetrace/adapters/crewai/__init__.py +0 -0
- {hivetrace-1.3.12 → hivetrace-1.3.13}/hivetrace/adapters/crewai/adapter.py +0 -0
- {hivetrace-1.3.12 → hivetrace-1.3.13}/hivetrace/adapters/crewai/decorators.py +0 -0
- {hivetrace-1.3.12 → hivetrace-1.3.13}/hivetrace/adapters/crewai/monitored_agent.py +0 -0
- {hivetrace-1.3.12 → hivetrace-1.3.13}/hivetrace/adapters/crewai/monitored_crew.py +0 -0
- {hivetrace-1.3.12 → hivetrace-1.3.13}/hivetrace/adapters/crewai/tool_wrapper.py +0 -0
- {hivetrace-1.3.12 → hivetrace-1.3.13}/hivetrace/adapters/langchain/__init__.py +0 -0
- {hivetrace-1.3.12 → hivetrace-1.3.13}/hivetrace/adapters/langchain/adapter.py +0 -0
- {hivetrace-1.3.12 → hivetrace-1.3.13}/hivetrace/adapters/langchain/api.py +0 -0
- {hivetrace-1.3.12 → hivetrace-1.3.13}/hivetrace/adapters/langchain/behavior_tracker.py +0 -0
- {hivetrace-1.3.12 → hivetrace-1.3.13}/hivetrace/adapters/langchain/callback.py +0 -0
- {hivetrace-1.3.12 → hivetrace-1.3.13}/hivetrace/adapters/langchain/decorators.py +0 -0
- {hivetrace-1.3.12 → hivetrace-1.3.13}/hivetrace/adapters/langchain/models.py +0 -0
- {hivetrace-1.3.12 → hivetrace-1.3.13}/hivetrace/adapters/openai_agents/__init__.py +0 -0
- {hivetrace-1.3.12 → hivetrace-1.3.13}/hivetrace/adapters/openai_agents/adapter.py +0 -0
- {hivetrace-1.3.12 → hivetrace-1.3.13}/hivetrace/adapters/openai_agents/models.py +0 -0
- {hivetrace-1.3.12 → hivetrace-1.3.13}/hivetrace/adapters/openai_agents/tracing.py +0 -0
- {hivetrace-1.3.12 → hivetrace-1.3.13}/hivetrace/adapters/utils/__init__.py +0 -0
- {hivetrace-1.3.12 → hivetrace-1.3.13}/hivetrace/adapters/utils/logging.py +0 -0
- {hivetrace-1.3.12 → hivetrace-1.3.13}/hivetrace/client/__init__.py +0 -0
- {hivetrace-1.3.12 → hivetrace-1.3.13}/hivetrace/errors/__init__.py +0 -0
- {hivetrace-1.3.12 → hivetrace-1.3.13}/hivetrace/errors/api.py +0 -0
- {hivetrace-1.3.12 → hivetrace-1.3.13}/hivetrace/errors/base.py +0 -0
- {hivetrace-1.3.12 → hivetrace-1.3.13}/hivetrace/errors/network.py +0 -0
- {hivetrace-1.3.12 → hivetrace-1.3.13}/hivetrace/errors/validation.py +0 -0
- {hivetrace-1.3.12 → hivetrace-1.3.13}/hivetrace/handlers/__init__.py +0 -0
- {hivetrace-1.3.12 → hivetrace-1.3.13}/hivetrace/handlers/error_handler.py +0 -0
- {hivetrace-1.3.12 → hivetrace-1.3.13}/hivetrace/handlers/response_builder.py +0 -0
- {hivetrace-1.3.12 → hivetrace-1.3.13}/hivetrace/models/__init__.py +0 -0
- {hivetrace-1.3.12 → hivetrace-1.3.13}/hivetrace/models/requests.py +0 -0
- {hivetrace-1.3.12 → hivetrace-1.3.13}/hivetrace/models/responses.py +0 -0
- {hivetrace-1.3.12 → hivetrace-1.3.13}/hivetrace/utils/__init__.py +0 -0
- {hivetrace-1.3.12 → hivetrace-1.3.13}/hivetrace/utils/error_helpers.py +0 -0
- {hivetrace-1.3.12 → hivetrace-1.3.13}/hivetrace/utils/uuid_generator.py +0 -0
- {hivetrace-1.3.12 → hivetrace-1.3.13}/hivetrace.egg-info/SOURCES.txt +0 -0
- {hivetrace-1.3.12 → hivetrace-1.3.13}/hivetrace.egg-info/dependency_links.txt +0 -0
- {hivetrace-1.3.12 → hivetrace-1.3.13}/hivetrace.egg-info/requires.txt +0 -0
- {hivetrace-1.3.12 → hivetrace-1.3.13}/hivetrace.egg-info/top_level.txt +0 -0
- {hivetrace-1.3.12 → hivetrace-1.3.13}/setup.cfg +0 -0
|
@@ -107,7 +107,9 @@ class AsyncHivetraceSDK(BaseHivetraceSDK):
|
|
|
107
107
|
files_response = await self._send_files(
|
|
108
108
|
f"/user_prompt_analysis/{analysis_id}/attach_files", files
|
|
109
109
|
)
|
|
110
|
-
if
|
|
110
|
+
if hasattr(files_response, "success") and not files_response.success:
|
|
111
|
+
return files_response
|
|
112
|
+
elif isinstance(files_response, dict) and not files_response.get("success", True):
|
|
111
113
|
return files_response
|
|
112
114
|
|
|
113
115
|
blocked = await self._get_blocking_status(
|
|
@@ -134,7 +136,9 @@ class AsyncHivetraceSDK(BaseHivetraceSDK):
|
|
|
134
136
|
files_response = await self._send_files(
|
|
135
137
|
f"/llm_response_analysis/{analysis_id}/attach_files", files
|
|
136
138
|
)
|
|
137
|
-
if
|
|
139
|
+
if hasattr(files_response, "success") and not files_response.success:
|
|
140
|
+
return files_response
|
|
141
|
+
elif isinstance(files_response, dict) and not files_response.get("success", True):
|
|
138
142
|
return files_response
|
|
139
143
|
|
|
140
144
|
blocked = await self._get_blocking_status(
|
|
@@ -128,6 +128,10 @@ class BaseHivetraceSDK(ABC):
|
|
|
128
128
|
request_id = response.get("request_id")
|
|
129
129
|
if request_id:
|
|
130
130
|
return str(request_id)
|
|
131
|
+
elif hasattr(response, "request_id"):
|
|
132
|
+
request_id = getattr(response, "request_id", None)
|
|
133
|
+
if request_id:
|
|
134
|
+
return str(request_id)
|
|
131
135
|
except Exception:
|
|
132
136
|
return None
|
|
133
137
|
return None
|
|
@@ -122,7 +122,9 @@ class SyncHivetraceSDK(BaseHivetraceSDK):
|
|
|
122
122
|
files_response = self._send_files(
|
|
123
123
|
f"/user_prompt_analysis/{analysis_id}/attach_files", files
|
|
124
124
|
)
|
|
125
|
-
if
|
|
125
|
+
if hasattr(files_response, "success") and not files_response.success:
|
|
126
|
+
return files_response
|
|
127
|
+
elif isinstance(files_response, dict) and not files_response.get("success", True):
|
|
126
128
|
return files_response
|
|
127
129
|
|
|
128
130
|
blocked = self._get_blocking_status(
|
|
@@ -149,7 +151,9 @@ class SyncHivetraceSDK(BaseHivetraceSDK):
|
|
|
149
151
|
files_response = self._send_files(
|
|
150
152
|
f"/llm_response_analysis/{analysis_id}/attach_files", files
|
|
151
153
|
)
|
|
152
|
-
if
|
|
154
|
+
if hasattr(files_response, "success") and not files_response.success:
|
|
155
|
+
return files_response
|
|
156
|
+
elif isinstance(files_response, dict) and not files_response.get("success", True):
|
|
153
157
|
return files_response
|
|
154
158
|
|
|
155
159
|
blocked = self._get_blocking_status(
|
|
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
|
|
File without changes
|
|
File without changes
|
|
File without changes
|