hivetrace 1.3.1__py3-none-any.whl → 1.3.3__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.
@@ -59,6 +59,13 @@ class AgentLoggingCallback(BaseCallbackHandler):
59
59
  except Exception:
60
60
  pass
61
61
 
62
+ def reset(self) -> None:
63
+ """Resets the callback"""
64
+ self._agents_log.clear()
65
+ self.current_agent_run_ids.clear()
66
+ self.call_id_mapping.clear()
67
+ self.behavior_tracker = AgentBehaviorTracker()
68
+
62
69
  def _get_universal_description(self, agent_name: str) -> str:
63
70
  """Returns the universal agent description"""
64
71
  if agent_name in self.agent_descriptions:
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: hivetrace
3
- Version: 1.3.1
3
+ Version: 1.3.3
4
4
  Summary: Hivetrace SDK for monitoring LLM applications
5
5
  Home-page: http://hivetrace.ai
6
6
  Author: Raft
@@ -709,9 +709,19 @@ class YourOrchestrator:
709
709
 
710
710
  def run(self, query: str):
711
711
  # Your orchestration logic here
712
+ self.logging_callback.reset() # use reset()
712
713
  pass
714
+
715
+ result = orchestrator.run("your request")
716
+ print(result)
717
+
713
718
  ```
714
719
 
720
+ > **Important**: if you reuse the same `OrchestratorAgent` instance,
721
+ > the > internal `AgentLoggingCallback` remains the same. By calling
722
+ > `reset()`, all accumulated data is cleared and only the events of
723
+ > the current request are reported to HiveTrace.
724
+
715
725
  ### Environment Variables
716
726
 
717
727
  Set up your environment variables for easier configuration:
@@ -12,15 +12,15 @@ hivetrace/adapters/crewai/tool_wrapper.py,sha256=svFq5D5DT6n3eJY4tjiEku5V8Sb-RYj
12
12
  hivetrace/adapters/langchain/__init__.py,sha256=3ZfCJNMz_q_rafNQQHnhByP9g9G2UWeCPvcBL2QklH0,440
13
13
  hivetrace/adapters/langchain/adapter.py,sha256=vi0Lai_KuVd72Od_OiSZeYW0qERkDVdWu8Rr8tFjo3I,9861
14
14
  hivetrace/adapters/langchain/behavior_tracker.py,sha256=ETNQjoIDtk3Cde5DiOfMln_CScrK9uc7wrYwBV1FarU,2313
15
- hivetrace/adapters/langchain/callback.py,sha256=QGmBO5KzZ_1GnCmdbMHc20GNPI0zftY0JEQyDsy2lQA,19498
15
+ hivetrace/adapters/langchain/callback.py,sha256=LJXzJDwAECOQIlZqkVvSCn1KzBjUVSQpzA5iJ9lH1z0,19730
16
16
  hivetrace/adapters/langchain/decorators.py,sha256=yocDjsDup8omiMYFX2Dx8mws45bTKsMGhF6-nuDwmfk,3193
17
17
  hivetrace/adapters/langchain/models.py,sha256=Pk4cQRrdSu9q8Mp49dU6oeUIesw1f1gG5rt1R9HjLMo,1435
18
18
  hivetrace/adapters/utils/__init__.py,sha256=AkdJzecQlhT3hHFOIO5zWbAIEXvbgH_5vmzlPViedt0,142
19
19
  hivetrace/adapters/utils/logging.py,sha256=UxCMFvlpP6vJfzRwMYhhJIi7RTWdgVK2sWtCeEB67_w,1126
20
20
  hivetrace/utils/__init__.py,sha256=DxWV8tC4i5w4bMrvVuUM53_i7qHkfcduOAZF6nH6s7w,127
21
21
  hivetrace/utils/uuid_generator.py,sha256=ti9z7ZXegBLywI1fW_NtVZckeDwgf9qFDM_3k71dGCg,225
22
- hivetrace-1.3.1.dist-info/LICENSE,sha256=8d3g3prbWPDLQ5AV0dtyWfYTj5QPl8MJ_wlr2l8pjEU,11333
23
- hivetrace-1.3.1.dist-info/METADATA,sha256=dUS3FGaW4jgyV5QKktYDIRHRmq6BAV9fpEfueGe065c,17961
24
- hivetrace-1.3.1.dist-info/WHEEL,sha256=oiQVh_5PnQM0E3gPdiz09WCNmwiHDMaGer_elqB3coM,92
25
- hivetrace-1.3.1.dist-info/top_level.txt,sha256=F6mZCzZ5CSftMc-M0NeOYWbwyTzjybR72P4qSBMyZZM,10
26
- hivetrace-1.3.1.dist-info/RECORD,,
22
+ hivetrace-1.3.3.dist-info/LICENSE,sha256=8d3g3prbWPDLQ5AV0dtyWfYTj5QPl8MJ_wlr2l8pjEU,11333
23
+ hivetrace-1.3.3.dist-info/METADATA,sha256=NgfrjXwNWTyH5n2Lt56LEqvjeoTyc4saZUxtzf23Lm4,18343
24
+ hivetrace-1.3.3.dist-info/WHEEL,sha256=oiQVh_5PnQM0E3gPdiz09WCNmwiHDMaGer_elqB3coM,92
25
+ hivetrace-1.3.3.dist-info/top_level.txt,sha256=F6mZCzZ5CSftMc-M0NeOYWbwyTzjybR72P4qSBMyZZM,10
26
+ hivetrace-1.3.3.dist-info/RECORD,,