praisonaiagents 0.0.21__tar.gz → 0.0.22__tar.gz
Sign up to get free protection for your applications and to get access to all the features.
- {praisonaiagents-0.0.21 → praisonaiagents-0.0.22}/PKG-INFO +1 -1
- {praisonaiagents-0.0.21 → praisonaiagents-0.0.22}/praisonaiagents/agent/agent.py +5 -3
- {praisonaiagents-0.0.21 → praisonaiagents-0.0.22}/praisonaiagents/agents/agents.py +5 -3
- {praisonaiagents-0.0.21 → praisonaiagents-0.0.22}/praisonaiagents.egg-info/PKG-INFO +1 -1
- {praisonaiagents-0.0.21 → praisonaiagents-0.0.22}/pyproject.toml +1 -1
- {praisonaiagents-0.0.21 → praisonaiagents-0.0.22}/praisonaiagents/__init__.py +0 -0
- {praisonaiagents-0.0.21 → praisonaiagents-0.0.22}/praisonaiagents/agent/__init__.py +0 -0
- {praisonaiagents-0.0.21 → praisonaiagents-0.0.22}/praisonaiagents/agents/__init__.py +0 -0
- {praisonaiagents-0.0.21 → praisonaiagents-0.0.22}/praisonaiagents/build/lib/praisonaiagents/__init__.py +0 -0
- {praisonaiagents-0.0.21 → praisonaiagents-0.0.22}/praisonaiagents/build/lib/praisonaiagents/agent/__init__.py +0 -0
- {praisonaiagents-0.0.21 → praisonaiagents-0.0.22}/praisonaiagents/build/lib/praisonaiagents/agent/agent.py +0 -0
- {praisonaiagents-0.0.21 → praisonaiagents-0.0.22}/praisonaiagents/build/lib/praisonaiagents/agents/__init__.py +0 -0
- {praisonaiagents-0.0.21 → praisonaiagents-0.0.22}/praisonaiagents/build/lib/praisonaiagents/agents/agents.py +0 -0
- {praisonaiagents-0.0.21 → praisonaiagents-0.0.22}/praisonaiagents/build/lib/praisonaiagents/main.py +0 -0
- {praisonaiagents-0.0.21 → praisonaiagents-0.0.22}/praisonaiagents/build/lib/praisonaiagents/task/__init__.py +0 -0
- {praisonaiagents-0.0.21 → praisonaiagents-0.0.22}/praisonaiagents/build/lib/praisonaiagents/task/task.py +0 -0
- {praisonaiagents-0.0.21 → praisonaiagents-0.0.22}/praisonaiagents/main.py +0 -0
- {praisonaiagents-0.0.21 → praisonaiagents-0.0.22}/praisonaiagents/process/__init__.py +0 -0
- {praisonaiagents-0.0.21 → praisonaiagents-0.0.22}/praisonaiagents/process/process.py +0 -0
- {praisonaiagents-0.0.21 → praisonaiagents-0.0.22}/praisonaiagents/task/__init__.py +0 -0
- {praisonaiagents-0.0.21 → praisonaiagents-0.0.22}/praisonaiagents/task/task.py +0 -0
- {praisonaiagents-0.0.21 → praisonaiagents-0.0.22}/praisonaiagents/tools/__init__.py +0 -0
- {praisonaiagents-0.0.21 → praisonaiagents-0.0.22}/praisonaiagents/tools/tools.py +0 -0
- {praisonaiagents-0.0.21 → praisonaiagents-0.0.22}/praisonaiagents.egg-info/SOURCES.txt +0 -0
- {praisonaiagents-0.0.21 → praisonaiagents-0.0.22}/praisonaiagents.egg-info/dependency_links.txt +0 -0
- {praisonaiagents-0.0.21 → praisonaiagents-0.0.22}/praisonaiagents.egg-info/requires.txt +0 -0
- {praisonaiagents-0.0.21 → praisonaiagents-0.0.22}/praisonaiagents.egg-info/top_level.txt +0 -0
- {praisonaiagents-0.0.21 → praisonaiagents-0.0.22}/setup.cfg +0 -0
@@ -140,7 +140,7 @@ class Agent:
|
|
140
140
|
goal: Optional[str] = None,
|
141
141
|
backstory: Optional[str] = None,
|
142
142
|
instructions: Optional[str] = None,
|
143
|
-
llm: Optional[Union[str, Any]] =
|
143
|
+
llm: Optional[Union[str, Any]] = None,
|
144
144
|
tools: Optional[List[Any]] = None,
|
145
145
|
function_calling_llm: Optional[Any] = None,
|
146
146
|
max_iter: int = 20,
|
@@ -189,7 +189,8 @@ class Agent:
|
|
189
189
|
self.self_reflect = True if self_reflect is None else self_reflect
|
190
190
|
|
191
191
|
self.instructions = instructions
|
192
|
-
|
192
|
+
# Check for model name in environment variable if not provided
|
193
|
+
self.llm = llm or os.getenv('OPENAI_MODEL_NAME', 'gpt-4o')
|
193
194
|
self.tools = tools if tools else [] # Store original tools
|
194
195
|
self.function_calling_llm = function_calling_llm
|
195
196
|
self.max_iter = max_iter
|
@@ -214,7 +215,8 @@ class Agent:
|
|
214
215
|
self.markdown = markdown
|
215
216
|
self.max_reflect = max_reflect
|
216
217
|
self.min_reflect = min_reflect
|
217
|
-
|
218
|
+
# Use the same model selection logic for reflect_llm
|
219
|
+
self.reflect_llm = reflect_llm or os.getenv('OPENAI_MODEL_NAME', 'gpt-4o')
|
218
220
|
self.console = Console() # Create a single console instance for the agent
|
219
221
|
|
220
222
|
# Initialize system prompt
|
@@ -54,9 +54,11 @@ class PraisonAIAgents:
|
|
54
54
|
self.verbose = verbose
|
55
55
|
self.max_retries = max_retries
|
56
56
|
self.process = process
|
57
|
-
|
58
|
-
|
59
|
-
self.manager_llm = manager_llm
|
57
|
+
|
58
|
+
# Check for manager_llm in environment variable if not provided
|
59
|
+
self.manager_llm = manager_llm or os.getenv('OPENAI_MODEL_NAME', 'gpt-4o')
|
60
|
+
if self.verbose:
|
61
|
+
logging.info(f"Using model {self.manager_llm} for manager")
|
60
62
|
|
61
63
|
# If no tasks provided, generate them from agents
|
62
64
|
if tasks is None:
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
{praisonaiagents-0.0.21 → praisonaiagents-0.0.22}/praisonaiagents/build/lib/praisonaiagents/main.py
RENAMED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
{praisonaiagents-0.0.21 → praisonaiagents-0.0.22}/praisonaiagents.egg-info/dependency_links.txt
RENAMED
File without changes
|
File without changes
|
File without changes
|
File without changes
|