praisonaiagents 0.0.123__py3-none-any.whl → 0.0.125__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.
@@ -2,6 +2,30 @@
2
2
  Praison AI Agents - A package for hierarchical AI agent task execution
3
3
  """
4
4
 
5
+ # Configure logging before any other imports
6
+ import os
7
+ import logging
8
+ from rich.logging import RichHandler
9
+
10
+ # Get log level from environment variable
11
+ LOGLEVEL = os.environ.get('LOGLEVEL', 'INFO').upper()
12
+
13
+ # Configure root logger
14
+ logging.basicConfig(
15
+ level=getattr(logging, LOGLEVEL, logging.INFO),
16
+ format="%(asctime)s %(filename)s:%(lineno)d %(levelname)s %(message)s",
17
+ datefmt="[%X]",
18
+ handlers=[RichHandler(rich_tracebacks=True)]
19
+ )
20
+
21
+ # Suppress specific noisy loggers
22
+ logging.getLogger("litellm").setLevel(logging.WARNING)
23
+ logging.getLogger("litellm.utils").setLevel(logging.WARNING)
24
+ logging.getLogger("markdown_it").setLevel(logging.WARNING)
25
+ logging.getLogger("rich.markdown").setLevel(logging.WARNING)
26
+ logging.getLogger("httpx").setLevel(logging.WARNING)
27
+ logging.getLogger("httpcore").setLevel(logging.WARNING)
28
+
5
29
  from .agent.agent import Agent
6
30
  from .agent.image_agent import ImageAgent
7
31
  from .agents.agents import PraisonAIAgents