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.
Files changed (28) hide show
  1. {praisonaiagents-0.0.21 → praisonaiagents-0.0.22}/PKG-INFO +1 -1
  2. {praisonaiagents-0.0.21 → praisonaiagents-0.0.22}/praisonaiagents/agent/agent.py +5 -3
  3. {praisonaiagents-0.0.21 → praisonaiagents-0.0.22}/praisonaiagents/agents/agents.py +5 -3
  4. {praisonaiagents-0.0.21 → praisonaiagents-0.0.22}/praisonaiagents.egg-info/PKG-INFO +1 -1
  5. {praisonaiagents-0.0.21 → praisonaiagents-0.0.22}/pyproject.toml +1 -1
  6. {praisonaiagents-0.0.21 → praisonaiagents-0.0.22}/praisonaiagents/__init__.py +0 -0
  7. {praisonaiagents-0.0.21 → praisonaiagents-0.0.22}/praisonaiagents/agent/__init__.py +0 -0
  8. {praisonaiagents-0.0.21 → praisonaiagents-0.0.22}/praisonaiagents/agents/__init__.py +0 -0
  9. {praisonaiagents-0.0.21 → praisonaiagents-0.0.22}/praisonaiagents/build/lib/praisonaiagents/__init__.py +0 -0
  10. {praisonaiagents-0.0.21 → praisonaiagents-0.0.22}/praisonaiagents/build/lib/praisonaiagents/agent/__init__.py +0 -0
  11. {praisonaiagents-0.0.21 → praisonaiagents-0.0.22}/praisonaiagents/build/lib/praisonaiagents/agent/agent.py +0 -0
  12. {praisonaiagents-0.0.21 → praisonaiagents-0.0.22}/praisonaiagents/build/lib/praisonaiagents/agents/__init__.py +0 -0
  13. {praisonaiagents-0.0.21 → praisonaiagents-0.0.22}/praisonaiagents/build/lib/praisonaiagents/agents/agents.py +0 -0
  14. {praisonaiagents-0.0.21 → praisonaiagents-0.0.22}/praisonaiagents/build/lib/praisonaiagents/main.py +0 -0
  15. {praisonaiagents-0.0.21 → praisonaiagents-0.0.22}/praisonaiagents/build/lib/praisonaiagents/task/__init__.py +0 -0
  16. {praisonaiagents-0.0.21 → praisonaiagents-0.0.22}/praisonaiagents/build/lib/praisonaiagents/task/task.py +0 -0
  17. {praisonaiagents-0.0.21 → praisonaiagents-0.0.22}/praisonaiagents/main.py +0 -0
  18. {praisonaiagents-0.0.21 → praisonaiagents-0.0.22}/praisonaiagents/process/__init__.py +0 -0
  19. {praisonaiagents-0.0.21 → praisonaiagents-0.0.22}/praisonaiagents/process/process.py +0 -0
  20. {praisonaiagents-0.0.21 → praisonaiagents-0.0.22}/praisonaiagents/task/__init__.py +0 -0
  21. {praisonaiagents-0.0.21 → praisonaiagents-0.0.22}/praisonaiagents/task/task.py +0 -0
  22. {praisonaiagents-0.0.21 → praisonaiagents-0.0.22}/praisonaiagents/tools/__init__.py +0 -0
  23. {praisonaiagents-0.0.21 → praisonaiagents-0.0.22}/praisonaiagents/tools/tools.py +0 -0
  24. {praisonaiagents-0.0.21 → praisonaiagents-0.0.22}/praisonaiagents.egg-info/SOURCES.txt +0 -0
  25. {praisonaiagents-0.0.21 → praisonaiagents-0.0.22}/praisonaiagents.egg-info/dependency_links.txt +0 -0
  26. {praisonaiagents-0.0.21 → praisonaiagents-0.0.22}/praisonaiagents.egg-info/requires.txt +0 -0
  27. {praisonaiagents-0.0.21 → praisonaiagents-0.0.22}/praisonaiagents.egg-info/top_level.txt +0 -0
  28. {praisonaiagents-0.0.21 → praisonaiagents-0.0.22}/setup.cfg +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: praisonaiagents
3
- Version: 0.0.21
3
+ Version: 0.0.22
4
4
  Summary: Praison AI agents for completing complex tasks with Self Reflection Agents
5
5
  Author: Mervin Praison
6
6
  Requires-Dist: pydantic
@@ -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]] = "gpt-4o",
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
- self.llm = llm
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
- self.reflect_llm = reflect_llm
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
- if not manager_llm:
58
- logging.debug("No manager_llm provided. Using OPENAI_MODEL_NAME environment variable or defaulting to 'gpt-4o'")
59
- self.manager_llm = manager_llm if manager_llm else os.getenv('OPENAI_MODEL_NAME', 'gpt-4o')
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:
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: praisonaiagents
3
- Version: 0.0.21
3
+ Version: 0.0.22
4
4
  Summary: Praison AI agents for completing complex tasks with Self Reflection Agents
5
5
  Author: Mervin Praison
6
6
  Requires-Dist: pydantic
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
4
4
 
5
5
  [project]
6
6
  name = "praisonaiagents"
7
- version = "0.0.21"
7
+ version = "0.0.22"
8
8
  description = "Praison AI agents for completing complex tasks with Self Reflection Agents"
9
9
  authors = [
10
10
  { name="Mervin Praison" }