hivetrace 1.3.1__tar.gz → 1.3.3__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 (31) hide show
  1. {hivetrace-1.3.1 → hivetrace-1.3.3}/PKG-INFO +11 -1
  2. {hivetrace-1.3.1 → hivetrace-1.3.3}/README.md +10 -0
  3. {hivetrace-1.3.1 → hivetrace-1.3.3}/hivetrace/adapters/langchain/callback.py +7 -0
  4. {hivetrace-1.3.1 → hivetrace-1.3.3}/hivetrace.egg-info/PKG-INFO +11 -1
  5. {hivetrace-1.3.1 → hivetrace-1.3.3}/setup.py +1 -1
  6. {hivetrace-1.3.1 → hivetrace-1.3.3}/LICENSE +0 -0
  7. {hivetrace-1.3.1 → hivetrace-1.3.3}/hivetrace/__init__.py +0 -0
  8. {hivetrace-1.3.1 → hivetrace-1.3.3}/hivetrace/adapters/__init__.py +0 -0
  9. {hivetrace-1.3.1 → hivetrace-1.3.3}/hivetrace/adapters/base_adapter.py +0 -0
  10. {hivetrace-1.3.1 → hivetrace-1.3.3}/hivetrace/adapters/crewai/__init__.py +0 -0
  11. {hivetrace-1.3.1 → hivetrace-1.3.3}/hivetrace/adapters/crewai/adapter.py +0 -0
  12. {hivetrace-1.3.1 → hivetrace-1.3.3}/hivetrace/adapters/crewai/decorators.py +0 -0
  13. {hivetrace-1.3.1 → hivetrace-1.3.3}/hivetrace/adapters/crewai/monitored_agent.py +0 -0
  14. {hivetrace-1.3.1 → hivetrace-1.3.3}/hivetrace/adapters/crewai/monitored_crew.py +0 -0
  15. {hivetrace-1.3.1 → hivetrace-1.3.3}/hivetrace/adapters/crewai/tool_wrapper.py +0 -0
  16. {hivetrace-1.3.1 → hivetrace-1.3.3}/hivetrace/adapters/langchain/__init__.py +0 -0
  17. {hivetrace-1.3.1 → hivetrace-1.3.3}/hivetrace/adapters/langchain/adapter.py +0 -0
  18. {hivetrace-1.3.1 → hivetrace-1.3.3}/hivetrace/adapters/langchain/behavior_tracker.py +0 -0
  19. {hivetrace-1.3.1 → hivetrace-1.3.3}/hivetrace/adapters/langchain/decorators.py +0 -0
  20. {hivetrace-1.3.1 → hivetrace-1.3.3}/hivetrace/adapters/langchain/models.py +0 -0
  21. {hivetrace-1.3.1 → hivetrace-1.3.3}/hivetrace/adapters/utils/__init__.py +0 -0
  22. {hivetrace-1.3.1 → hivetrace-1.3.3}/hivetrace/adapters/utils/logging.py +0 -0
  23. {hivetrace-1.3.1 → hivetrace-1.3.3}/hivetrace/crewai_adapter.py +0 -0
  24. {hivetrace-1.3.1 → hivetrace-1.3.3}/hivetrace/hivetrace.py +0 -0
  25. {hivetrace-1.3.1 → hivetrace-1.3.3}/hivetrace/utils/__init__.py +0 -0
  26. {hivetrace-1.3.1 → hivetrace-1.3.3}/hivetrace/utils/uuid_generator.py +0 -0
  27. {hivetrace-1.3.1 → hivetrace-1.3.3}/hivetrace.egg-info/SOURCES.txt +0 -0
  28. {hivetrace-1.3.1 → hivetrace-1.3.3}/hivetrace.egg-info/dependency_links.txt +0 -0
  29. {hivetrace-1.3.1 → hivetrace-1.3.3}/hivetrace.egg-info/requires.txt +0 -0
  30. {hivetrace-1.3.1 → hivetrace-1.3.3}/hivetrace.egg-info/top_level.txt +0 -0
  31. {hivetrace-1.3.1 → hivetrace-1.3.3}/setup.cfg +0 -0
@@ -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
@@ -693,9 +693,19 @@ class YourOrchestrator:
693
693
 
694
694
  def run(self, query: str):
695
695
  # Your orchestration logic here
696
+ self.logging_callback.reset() # use reset()
696
697
  pass
698
+
699
+ result = orchestrator.run("your request")
700
+ print(result)
701
+
697
702
  ```
698
703
 
704
+ > **Important**: if you reuse the same `OrchestratorAgent` instance,
705
+ > the > internal `AgentLoggingCallback` remains the same. By calling
706
+ > `reset()`, all accumulated data is cleared and only the events of
707
+ > the current request are reported to HiveTrace.
708
+
699
709
  ### Environment Variables
700
710
 
701
711
  Set up your environment variables for easier configuration:
@@ -676,9 +676,19 @@ class YourOrchestrator:
676
676
 
677
677
  def run(self, query: str):
678
678
  # Your orchestration logic here
679
+ self.logging_callback.reset() # use reset()
679
680
  pass
681
+
682
+ result = orchestrator.run("your request")
683
+ print(result)
684
+
680
685
  ```
681
686
 
687
+ > **Important**: if you reuse the same `OrchestratorAgent` instance,
688
+ > the > internal `AgentLoggingCallback` remains the same. By calling
689
+ > `reset()`, all accumulated data is cleared and only the events of
690
+ > the current request are reported to HiveTrace.
691
+
682
692
  ### Environment Variables
683
693
 
684
694
  Set up your environment variables for easier configuration:
@@ -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
@@ -693,9 +693,19 @@ class YourOrchestrator:
693
693
 
694
694
  def run(self, query: str):
695
695
  # Your orchestration logic here
696
+ self.logging_callback.reset() # use reset()
696
697
  pass
698
+
699
+ result = orchestrator.run("your request")
700
+ print(result)
701
+
697
702
  ```
698
703
 
704
+ > **Important**: if you reuse the same `OrchestratorAgent` instance,
705
+ > the > internal `AgentLoggingCallback` remains the same. By calling
706
+ > `reset()`, all accumulated data is cleared and only the events of
707
+ > the current request are reported to HiveTrace.
708
+
699
709
  ### Environment Variables
700
710
 
701
711
  Set up your environment variables for easier configuration:
@@ -24,7 +24,7 @@ crewai_requires = [
24
24
 
25
25
  setup(
26
26
  name="hivetrace",
27
- version="1.3.1",
27
+ version="1.3.3",
28
28
  author="Raft",
29
29
  author_email="sales@raftds.com",
30
30
  description="Hivetrace SDK for monitoring LLM applications",
File without changes
File without changes