hivetrace 1.3.9__py3-none-any.whl → 1.3.10__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.
@@ -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
@@ -176,13 +176,13 @@ response = client.input(
176
176
  "agent-1-id": {"name": "Agent 1", "description": "Agent description"},
177
177
  "agent-2-id": {"name": "Agent 2"},
178
178
  "agent-3-id": {}
179
- }
179
+ },
180
+ # If you want to send only to censor and avoid DB persistence on backend
181
+ "censor_only": True,
180
182
  }
181
183
  )
182
184
  ```
183
185
 
184
- > **Note:** `session_id`, `user_id`, and all agent IDs must be valid UUIDs.
185
-
186
186
  ---
187
187
 
188
188
  ## API
@@ -212,6 +212,7 @@ Sends a **user prompt** to Hivetrace.
212
212
  * `application_id` — Application identifier (must be a valid UUID, created in the UI)
213
213
  * `message` — The user prompt
214
214
  * `additional_parameters` — Optional dictionary with extra context (session, user, agents, etc.)
215
+ - Supported special flags: `censor_only: bool` — when `True`, backend should not persist the message in DB and only pass it to the censor
215
216
  * `files` — Optional list of tuples `(filename: str, content: bytes, mime_type: str)`; files are attached to the created analysis record
216
217
 
217
218
  Response contains a `blocked` flag that indicates role restrictions.
@@ -226,8 +227,7 @@ Response contains a `blocked` flag that indicates role restrictions.
226
227
  "is_toxic": false,
227
228
  "type_of_violation": "benign",
228
229
  "token_count": 9,
229
- "token_usage_warning": false,
230
- "token_usage_unbounded": false
230
+ "token_usage_severity": None
231
231
  }
232
232
  }
233
233
  ```
@@ -275,8 +275,7 @@ Response contains a `blocked` flag that indicates role restrictions.
275
275
  "is_toxic": false,
276
276
  "type_of_violation": "safe",
277
277
  "token_count": 21,
278
- "token_usage_warning": false,
279
- "token_usage_unbounded": false
278
+ "token_usage_severity": None
280
279
  }
281
280
  }
282
281
  ```
@@ -33,13 +33,13 @@ hivetrace/handlers/__init__.py,sha256=9edrtdJyvx8UkANmrjjVhg9f0kWMxfXVrmURTUrW6m
33
33
  hivetrace/handlers/error_handler.py,sha256=aWLL--HKBm4h8AO4oQSpsFObq2TjHXntYXBDXWp-Q30,3774
34
34
  hivetrace/handlers/response_builder.py,sha256=J3qDWxvi_jxiZ7AgmYscHfukbz4rmnSwBF2UaWkqzb4,2558
35
35
  hivetrace/models/__init__.py,sha256=qQvtDkI0Awlch6c_kedH5Jq8aWn3XhDXbxbch5nf-RI,1020
36
- hivetrace/models/requests.py,sha256=dMKUMOqerDmZj4CcQ3AF-N4HSl_csv9lafA2bpggNVc,2640
36
+ hivetrace/models/requests.py,sha256=iv7NXm5q-tVzs-54o9DfydgE8aMV-AjLa0vgzjGaKCQ,2588
37
37
  hivetrace/models/responses.py,sha256=U06Gc4ZU2WmaPxjy1Dg5BtTDad6MOBURiDPTeLyDtcE,3209
38
38
  hivetrace/utils/__init__.py,sha256=BNYbeSuUbrZL7RradjE_OFAxam3L6eexbL2IMfjImv0,747
39
39
  hivetrace/utils/error_helpers.py,sha256=egVQpENputLR8exNpV1cui2LSHqbf8pI6SHRbLdxOX8,2661
40
40
  hivetrace/utils/uuid_generator.py,sha256=W4i2tUSyClNKNgm4O-bk_Qkkmw3cWIuf29DjwXftx0c,344
41
- hivetrace-1.3.9.dist-info/LICENSE,sha256=8d3g3prbWPDLQ5AV0dtyWfYTj5QPl8MJ_wlr2l8pjEU,11333
42
- hivetrace-1.3.9.dist-info/METADATA,sha256=WMOawn28WE9xSOozoUgigYH2UkRCMCtcreYj7r_ccuY,27727
43
- hivetrace-1.3.9.dist-info/WHEEL,sha256=oiQVh_5PnQM0E3gPdiz09WCNmwiHDMaGer_elqB3coM,92
44
- hivetrace-1.3.9.dist-info/top_level.txt,sha256=F6mZCzZ5CSftMc-M0NeOYWbwyTzjybR72P4qSBMyZZM,10
45
- hivetrace-1.3.9.dist-info/RECORD,,
41
+ hivetrace-1.3.10.dist-info/LICENSE,sha256=8d3g3prbWPDLQ5AV0dtyWfYTj5QPl8MJ_wlr2l8pjEU,11333
42
+ hivetrace-1.3.10.dist-info/METADATA,sha256=CUFNyNu4jhK756r403Hp5--Xe72iyhft5SL5Kfjbozs,27832
43
+ hivetrace-1.3.10.dist-info/WHEEL,sha256=oiQVh_5PnQM0E3gPdiz09WCNmwiHDMaGer_elqB3coM,92
44
+ hivetrace-1.3.10.dist-info/top_level.txt,sha256=F6mZCzZ5CSftMc-M0NeOYWbwyTzjybR72P4qSBMyZZM,10
45
+ hivetrace-1.3.10.dist-info/RECORD,,