praisonaiagents 0.0.38__tar.gz → 0.0.39__tar.gz

Sign up to get free protection for your applications and to get access to all the features.
Files changed (43) hide show
  1. {praisonaiagents-0.0.38 → praisonaiagents-0.0.39}/PKG-INFO +1 -1
  2. {praisonaiagents-0.0.38 → praisonaiagents-0.0.39}/praisonaiagents/knowledge/knowledge.py +20 -7
  3. {praisonaiagents-0.0.38 → praisonaiagents-0.0.39}/praisonaiagents.egg-info/PKG-INFO +1 -1
  4. {praisonaiagents-0.0.38 → praisonaiagents-0.0.39}/pyproject.toml +1 -1
  5. {praisonaiagents-0.0.38 → praisonaiagents-0.0.39}/praisonaiagents/__init__.py +0 -0
  6. {praisonaiagents-0.0.38 → praisonaiagents-0.0.39}/praisonaiagents/agent/__init__.py +0 -0
  7. {praisonaiagents-0.0.38 → praisonaiagents-0.0.39}/praisonaiagents/agent/agent.py +0 -0
  8. {praisonaiagents-0.0.38 → praisonaiagents-0.0.39}/praisonaiagents/agents/__init__.py +0 -0
  9. {praisonaiagents-0.0.38 → praisonaiagents-0.0.39}/praisonaiagents/agents/agents.py +0 -0
  10. {praisonaiagents-0.0.38 → praisonaiagents-0.0.39}/praisonaiagents/agents/autoagents.py +0 -0
  11. {praisonaiagents-0.0.38 → praisonaiagents-0.0.39}/praisonaiagents/knowledge/__init__.py +0 -0
  12. {praisonaiagents-0.0.38 → praisonaiagents-0.0.39}/praisonaiagents/knowledge/chunking.py +0 -0
  13. {praisonaiagents-0.0.38 → praisonaiagents-0.0.39}/praisonaiagents/main.py +0 -0
  14. {praisonaiagents-0.0.38 → praisonaiagents-0.0.39}/praisonaiagents/memory/memory.py +0 -0
  15. {praisonaiagents-0.0.38 → praisonaiagents-0.0.39}/praisonaiagents/process/__init__.py +0 -0
  16. {praisonaiagents-0.0.38 → praisonaiagents-0.0.39}/praisonaiagents/process/process.py +0 -0
  17. {praisonaiagents-0.0.38 → praisonaiagents-0.0.39}/praisonaiagents/task/__init__.py +0 -0
  18. {praisonaiagents-0.0.38 → praisonaiagents-0.0.39}/praisonaiagents/task/task.py +0 -0
  19. {praisonaiagents-0.0.38 → praisonaiagents-0.0.39}/praisonaiagents/tools/__init__.py +0 -0
  20. {praisonaiagents-0.0.38 → praisonaiagents-0.0.39}/praisonaiagents/tools/arxiv_tools.py +0 -0
  21. {praisonaiagents-0.0.38 → praisonaiagents-0.0.39}/praisonaiagents/tools/calculator_tools.py +0 -0
  22. {praisonaiagents-0.0.38 → praisonaiagents-0.0.39}/praisonaiagents/tools/csv_tools.py +0 -0
  23. {praisonaiagents-0.0.38 → praisonaiagents-0.0.39}/praisonaiagents/tools/duckdb_tools.py +0 -0
  24. {praisonaiagents-0.0.38 → praisonaiagents-0.0.39}/praisonaiagents/tools/duckduckgo_tools.py +0 -0
  25. {praisonaiagents-0.0.38 → praisonaiagents-0.0.39}/praisonaiagents/tools/excel_tools.py +0 -0
  26. {praisonaiagents-0.0.38 → praisonaiagents-0.0.39}/praisonaiagents/tools/file_tools.py +0 -0
  27. {praisonaiagents-0.0.38 → praisonaiagents-0.0.39}/praisonaiagents/tools/json_tools.py +0 -0
  28. {praisonaiagents-0.0.38 → praisonaiagents-0.0.39}/praisonaiagents/tools/newspaper_tools.py +0 -0
  29. {praisonaiagents-0.0.38 → praisonaiagents-0.0.39}/praisonaiagents/tools/pandas_tools.py +0 -0
  30. {praisonaiagents-0.0.38 → praisonaiagents-0.0.39}/praisonaiagents/tools/python_tools.py +0 -0
  31. {praisonaiagents-0.0.38 → praisonaiagents-0.0.39}/praisonaiagents/tools/shell_tools.py +0 -0
  32. {praisonaiagents-0.0.38 → praisonaiagents-0.0.39}/praisonaiagents/tools/spider_tools.py +0 -0
  33. {praisonaiagents-0.0.38 → praisonaiagents-0.0.39}/praisonaiagents/tools/test.py +0 -0
  34. {praisonaiagents-0.0.38 → praisonaiagents-0.0.39}/praisonaiagents/tools/tools.py +0 -0
  35. {praisonaiagents-0.0.38 → praisonaiagents-0.0.39}/praisonaiagents/tools/wikipedia_tools.py +0 -0
  36. {praisonaiagents-0.0.38 → praisonaiagents-0.0.39}/praisonaiagents/tools/xml_tools.py +0 -0
  37. {praisonaiagents-0.0.38 → praisonaiagents-0.0.39}/praisonaiagents/tools/yaml_tools.py +0 -0
  38. {praisonaiagents-0.0.38 → praisonaiagents-0.0.39}/praisonaiagents/tools/yfinance_tools.py +0 -0
  39. {praisonaiagents-0.0.38 → praisonaiagents-0.0.39}/praisonaiagents.egg-info/SOURCES.txt +0 -0
  40. {praisonaiagents-0.0.38 → praisonaiagents-0.0.39}/praisonaiagents.egg-info/dependency_links.txt +0 -0
  41. {praisonaiagents-0.0.38 → praisonaiagents-0.0.39}/praisonaiagents.egg-info/requires.txt +0 -0
  42. {praisonaiagents-0.0.38 → praisonaiagents-0.0.39}/praisonaiagents.egg-info/top_level.txt +0 -0
  43. {praisonaiagents-0.0.38 → praisonaiagents-0.0.39}/setup.cfg +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.2
2
2
  Name: praisonaiagents
3
- Version: 0.0.38
3
+ Version: 0.0.39
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,6 +4,7 @@ import uuid
4
4
  import time
5
5
  from .chunking import Chunking
6
6
  from functools import cached_property
7
+ from rich.progress import Progress, SpinnerColumn, TextColumn, BarColumn, TaskProgressColumn
7
8
 
8
9
  logger = logging.getLogger(__name__)
9
10
 
@@ -274,14 +275,26 @@ class Knowledge:
274
275
  # Treat as raw text content only if no file extension
275
276
  memories = [self.normalize_content(input_path)]
276
277
 
277
- # Store memories
278
+ # Create progress display
279
+ progress = Progress(
280
+ SpinnerColumn(),
281
+ TextColumn("[progress.description]{task.description}"),
282
+ BarColumn(),
283
+ TaskProgressColumn(),
284
+ transient=True
285
+ )
286
+
287
+ # Store memories with progress bar
278
288
  all_results = []
279
- for memory in memories:
280
- if memory:
281
- memory_result = self.store(memory, user_id=user_id, agent_id=agent_id,
282
- run_id=run_id, metadata=metadata)
283
- if memory_result:
284
- all_results.extend(memory_result.get('results', []))
289
+ with progress:
290
+ store_task = progress.add_task(f"Adding to Knowledge from {os.path.basename(input_path)}", total=len(memories))
291
+ for memory in memories:
292
+ if memory:
293
+ memory_result = self.store(memory, user_id=user_id, agent_id=agent_id,
294
+ run_id=run_id, metadata=metadata)
295
+ if memory_result:
296
+ all_results.extend(memory_result.get('results', []))
297
+ progress.advance(store_task)
285
298
 
286
299
  return {'results': all_results, 'relations': []}
287
300
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.2
2
2
  Name: praisonaiagents
3
- Version: 0.0.38
3
+ Version: 0.0.39
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.38"
7
+ version = "0.0.39"
8
8
  description = "Praison AI agents for completing complex tasks with Self Reflection Agents"
9
9
  authors = [
10
10
  { name="Mervin Praison" }