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.
- praisonaiagents/__init__.py +24 -0
- praisonaiagents/agent/agent.py +329 -192
- praisonaiagents/agents/autoagents.py +1 -1
- praisonaiagents/knowledge/knowledge.py +0 -3
- praisonaiagents/llm/__init__.py +6 -9
- praisonaiagents/llm/llm.py +68 -26
- praisonaiagents/main.py +1 -18
- praisonaiagents/mcp/mcp.py +46 -8
- praisonaiagents/mcp/mcp_http_stream.py +466 -0
- praisonaiagents/mcp/mcp_sse.py +19 -2
- praisonaiagents/process/process.py +88 -3
- praisonaiagents/task/task.py +1 -0
- {praisonaiagents-0.0.123.dist-info → praisonaiagents-0.0.125.dist-info}/METADATA +2 -1
- {praisonaiagents-0.0.123.dist-info → praisonaiagents-0.0.125.dist-info}/RECORD +16 -15
- {praisonaiagents-0.0.123.dist-info → praisonaiagents-0.0.125.dist-info}/WHEEL +0 -0
- {praisonaiagents-0.0.123.dist-info → praisonaiagents-0.0.125.dist-info}/top_level.txt +0 -0
praisonaiagents/__init__.py
CHANGED
@@ -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
|