hivetrace 1.3.9__tar.gz → 1.3.10__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.
Files changed (50) hide show
  1. {hivetrace-1.3.9 → hivetrace-1.3.10}/PKG-INFO +7 -8
  2. {hivetrace-1.3.9 → hivetrace-1.3.10}/README.md +6 -7
  3. {hivetrace-1.3.9 → hivetrace-1.3.10}/hivetrace/models/requests.py +3 -3
  4. {hivetrace-1.3.9 → hivetrace-1.3.10}/hivetrace.egg-info/PKG-INFO +7 -8
  5. {hivetrace-1.3.9 → hivetrace-1.3.10}/setup.py +1 -1
  6. {hivetrace-1.3.9 → hivetrace-1.3.10}/LICENSE +0 -0
  7. {hivetrace-1.3.9 → hivetrace-1.3.10}/hivetrace/__init__.py +0 -0
  8. {hivetrace-1.3.9 → hivetrace-1.3.10}/hivetrace/adapters/__init__.py +0 -0
  9. {hivetrace-1.3.9 → hivetrace-1.3.10}/hivetrace/adapters/base_adapter.py +0 -0
  10. {hivetrace-1.3.9 → hivetrace-1.3.10}/hivetrace/adapters/crewai/__init__.py +0 -0
  11. {hivetrace-1.3.9 → hivetrace-1.3.10}/hivetrace/adapters/crewai/adapter.py +0 -0
  12. {hivetrace-1.3.9 → hivetrace-1.3.10}/hivetrace/adapters/crewai/decorators.py +0 -0
  13. {hivetrace-1.3.9 → hivetrace-1.3.10}/hivetrace/adapters/crewai/monitored_agent.py +0 -0
  14. {hivetrace-1.3.9 → hivetrace-1.3.10}/hivetrace/adapters/crewai/monitored_crew.py +0 -0
  15. {hivetrace-1.3.9 → hivetrace-1.3.10}/hivetrace/adapters/crewai/tool_wrapper.py +0 -0
  16. {hivetrace-1.3.9 → hivetrace-1.3.10}/hivetrace/adapters/langchain/__init__.py +0 -0
  17. {hivetrace-1.3.9 → hivetrace-1.3.10}/hivetrace/adapters/langchain/adapter.py +0 -0
  18. {hivetrace-1.3.9 → hivetrace-1.3.10}/hivetrace/adapters/langchain/api.py +0 -0
  19. {hivetrace-1.3.9 → hivetrace-1.3.10}/hivetrace/adapters/langchain/behavior_tracker.py +0 -0
  20. {hivetrace-1.3.9 → hivetrace-1.3.10}/hivetrace/adapters/langchain/callback.py +0 -0
  21. {hivetrace-1.3.9 → hivetrace-1.3.10}/hivetrace/adapters/langchain/decorators.py +0 -0
  22. {hivetrace-1.3.9 → hivetrace-1.3.10}/hivetrace/adapters/langchain/models.py +0 -0
  23. {hivetrace-1.3.9 → hivetrace-1.3.10}/hivetrace/adapters/openai_agents/__init__.py +0 -0
  24. {hivetrace-1.3.9 → hivetrace-1.3.10}/hivetrace/adapters/openai_agents/adapter.py +0 -0
  25. {hivetrace-1.3.9 → hivetrace-1.3.10}/hivetrace/adapters/openai_agents/models.py +0 -0
  26. {hivetrace-1.3.9 → hivetrace-1.3.10}/hivetrace/adapters/openai_agents/tracing.py +0 -0
  27. {hivetrace-1.3.9 → hivetrace-1.3.10}/hivetrace/adapters/utils/__init__.py +0 -0
  28. {hivetrace-1.3.9 → hivetrace-1.3.10}/hivetrace/adapters/utils/logging.py +0 -0
  29. {hivetrace-1.3.9 → hivetrace-1.3.10}/hivetrace/client/__init__.py +0 -0
  30. {hivetrace-1.3.9 → hivetrace-1.3.10}/hivetrace/client/async_client.py +0 -0
  31. {hivetrace-1.3.9 → hivetrace-1.3.10}/hivetrace/client/base.py +0 -0
  32. {hivetrace-1.3.9 → hivetrace-1.3.10}/hivetrace/client/sync_client.py +0 -0
  33. {hivetrace-1.3.9 → hivetrace-1.3.10}/hivetrace/errors/__init__.py +0 -0
  34. {hivetrace-1.3.9 → hivetrace-1.3.10}/hivetrace/errors/api.py +0 -0
  35. {hivetrace-1.3.9 → hivetrace-1.3.10}/hivetrace/errors/base.py +0 -0
  36. {hivetrace-1.3.9 → hivetrace-1.3.10}/hivetrace/errors/network.py +0 -0
  37. {hivetrace-1.3.9 → hivetrace-1.3.10}/hivetrace/errors/validation.py +0 -0
  38. {hivetrace-1.3.9 → hivetrace-1.3.10}/hivetrace/handlers/__init__.py +0 -0
  39. {hivetrace-1.3.9 → hivetrace-1.3.10}/hivetrace/handlers/error_handler.py +0 -0
  40. {hivetrace-1.3.9 → hivetrace-1.3.10}/hivetrace/handlers/response_builder.py +0 -0
  41. {hivetrace-1.3.9 → hivetrace-1.3.10}/hivetrace/models/__init__.py +0 -0
  42. {hivetrace-1.3.9 → hivetrace-1.3.10}/hivetrace/models/responses.py +0 -0
  43. {hivetrace-1.3.9 → hivetrace-1.3.10}/hivetrace/utils/__init__.py +0 -0
  44. {hivetrace-1.3.9 → hivetrace-1.3.10}/hivetrace/utils/error_helpers.py +0 -0
  45. {hivetrace-1.3.9 → hivetrace-1.3.10}/hivetrace/utils/uuid_generator.py +0 -0
  46. {hivetrace-1.3.9 → hivetrace-1.3.10}/hivetrace.egg-info/SOURCES.txt +0 -0
  47. {hivetrace-1.3.9 → hivetrace-1.3.10}/hivetrace.egg-info/dependency_links.txt +0 -0
  48. {hivetrace-1.3.9 → hivetrace-1.3.10}/hivetrace.egg-info/requires.txt +0 -0
  49. {hivetrace-1.3.9 → hivetrace-1.3.10}/hivetrace.egg-info/top_level.txt +0 -0
  50. {hivetrace-1.3.9 → hivetrace-1.3.10}/setup.cfg +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: hivetrace
3
- Version: 1.3.9
3
+ Version: 1.3.10
4
4
  Summary: Hivetrace SDK for monitoring LLM applications
5
5
  Home-page: http://hivetrace.ai
6
6
  Author: Raft
@@ -155,13 +155,13 @@ response = client.input(
155
155
  "agent-1-id": {"name": "Agent 1", "description": "Agent description"},
156
156
  "agent-2-id": {"name": "Agent 2"},
157
157
  "agent-3-id": {}
158
- }
158
+ },
159
+ # If you want to send only to censor and avoid DB persistence on backend
160
+ "censor_only": True,
159
161
  }
160
162
  )
161
163
  ```
162
164
 
163
- > **Note:** `session_id`, `user_id`, and all agent IDs must be valid UUIDs.
164
-
165
165
  ---
166
166
 
167
167
  ## API
@@ -191,6 +191,7 @@ Sends a **user prompt** to Hivetrace.
191
191
  * `application_id` — Application identifier (must be a valid UUID, created in the UI)
192
192
  * `message` — The user prompt
193
193
  * `additional_parameters` — Optional dictionary with extra context (session, user, agents, etc.)
194
+ - Supported special flags: `censor_only: bool` — when `True`, backend should not persist the message in DB and only pass it to the censor
194
195
  * `files` — Optional list of tuples `(filename: str, content: bytes, mime_type: str)`; files are attached to the created analysis record
195
196
 
196
197
  Response contains a `blocked` flag that indicates role restrictions.
@@ -205,8 +206,7 @@ Response contains a `blocked` flag that indicates role restrictions.
205
206
  "is_toxic": false,
206
207
  "type_of_violation": "benign",
207
208
  "token_count": 9,
208
- "token_usage_warning": false,
209
- "token_usage_unbounded": false
209
+ "token_usage_severity": None
210
210
  }
211
211
  }
212
212
  ```
@@ -254,8 +254,7 @@ Response contains a `blocked` flag that indicates role restrictions.
254
254
  "is_toxic": false,
255
255
  "type_of_violation": "safe",
256
256
  "token_count": 21,
257
- "token_usage_warning": false,
258
- "token_usage_unbounded": false
257
+ "token_usage_severity": None
259
258
  }
260
259
  }
261
260
  ```
@@ -137,13 +137,13 @@ response = client.input(
137
137
  "agent-1-id": {"name": "Agent 1", "description": "Agent description"},
138
138
  "agent-2-id": {"name": "Agent 2"},
139
139
  "agent-3-id": {}
140
- }
140
+ },
141
+ # If you want to send only to censor and avoid DB persistence on backend
142
+ "censor_only": True,
141
143
  }
142
144
  )
143
145
  ```
144
146
 
145
- > **Note:** `session_id`, `user_id`, and all agent IDs must be valid UUIDs.
146
-
147
147
  ---
148
148
 
149
149
  ## API
@@ -173,6 +173,7 @@ Sends a **user prompt** to Hivetrace.
173
173
  * `application_id` — Application identifier (must be a valid UUID, created in the UI)
174
174
  * `message` — The user prompt
175
175
  * `additional_parameters` — Optional dictionary with extra context (session, user, agents, etc.)
176
+ - Supported special flags: `censor_only: bool` — when `True`, backend should not persist the message in DB and only pass it to the censor
176
177
  * `files` — Optional list of tuples `(filename: str, content: bytes, mime_type: str)`; files are attached to the created analysis record
177
178
 
178
179
  Response contains a `blocked` flag that indicates role restrictions.
@@ -187,8 +188,7 @@ Response contains a `blocked` flag that indicates role restrictions.
187
188
  "is_toxic": false,
188
189
  "type_of_violation": "benign",
189
190
  "token_count": 9,
190
- "token_usage_warning": false,
191
- "token_usage_unbounded": false
191
+ "token_usage_severity": None
192
192
  }
193
193
  }
194
194
  ```
@@ -236,8 +236,7 @@ Response contains a `blocked` flag that indicates role restrictions.
236
236
  "is_toxic": false,
237
237
  "type_of_violation": "safe",
238
238
  "token_count": 21,
239
- "token_usage_warning": false,
240
- "token_usage_unbounded": false
239
+ "token_usage_severity": None
241
240
  }
242
241
  }
243
242
  ```
@@ -15,10 +15,10 @@ class BaseRequest(BaseModel):
15
15
  class MessageRequest(BaseRequest):
16
16
  """Base model for requests with message and additional parameters."""
17
17
 
18
- application_id: str = Field(..., description="ID приложения (UUID)")
19
- message: str = Field(..., min_length=1, description="Текст сообщения")
18
+ application_id: str = Field(..., description="Application ID (UUID)")
19
+ message: str = Field(..., min_length=1, description="Message text")
20
20
  additional_parameters: Optional[Dict[str, Any]] = Field(
21
- None, description="Дополнительные параметры"
21
+ None, description="Additional parameters"
22
22
  )
23
23
 
24
24
  @validator("application_id")
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: hivetrace
3
- Version: 1.3.9
3
+ Version: 1.3.10
4
4
  Summary: Hivetrace SDK for monitoring LLM applications
5
5
  Home-page: http://hivetrace.ai
6
6
  Author: Raft
@@ -155,13 +155,13 @@ response = client.input(
155
155
  "agent-1-id": {"name": "Agent 1", "description": "Agent description"},
156
156
  "agent-2-id": {"name": "Agent 2"},
157
157
  "agent-3-id": {}
158
- }
158
+ },
159
+ # If you want to send only to censor and avoid DB persistence on backend
160
+ "censor_only": True,
159
161
  }
160
162
  )
161
163
  ```
162
164
 
163
- > **Note:** `session_id`, `user_id`, and all agent IDs must be valid UUIDs.
164
-
165
165
  ---
166
166
 
167
167
  ## API
@@ -191,6 +191,7 @@ Sends a **user prompt** to Hivetrace.
191
191
  * `application_id` — Application identifier (must be a valid UUID, created in the UI)
192
192
  * `message` — The user prompt
193
193
  * `additional_parameters` — Optional dictionary with extra context (session, user, agents, etc.)
194
+ - Supported special flags: `censor_only: bool` — when `True`, backend should not persist the message in DB and only pass it to the censor
194
195
  * `files` — Optional list of tuples `(filename: str, content: bytes, mime_type: str)`; files are attached to the created analysis record
195
196
 
196
197
  Response contains a `blocked` flag that indicates role restrictions.
@@ -205,8 +206,7 @@ Response contains a `blocked` flag that indicates role restrictions.
205
206
  "is_toxic": false,
206
207
  "type_of_violation": "benign",
207
208
  "token_count": 9,
208
- "token_usage_warning": false,
209
- "token_usage_unbounded": false
209
+ "token_usage_severity": None
210
210
  }
211
211
  }
212
212
  ```
@@ -254,8 +254,7 @@ Response contains a `blocked` flag that indicates role restrictions.
254
254
  "is_toxic": false,
255
255
  "type_of_violation": "safe",
256
256
  "token_count": 21,
257
- "token_usage_warning": false,
258
- "token_usage_unbounded": false
257
+ "token_usage_severity": None
259
258
  }
260
259
  }
261
260
  ```
@@ -29,7 +29,7 @@ openai_agents_requires = [
29
29
 
30
30
  setup(
31
31
  name="hivetrace",
32
- version="1.3.9",
32
+ version="1.3.10",
33
33
  author="Raft",
34
34
  author_email="sales@raftds.com",
35
35
  description="Hivetrace SDK for monitoring LLM applications",
File without changes
File without changes