npcpy 1.2.16__tar.gz → 1.2.17__tar.gz

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.
Files changed (66) hide show
  1. {npcpy-1.2.16/npcpy.egg-info → npcpy-1.2.17}/PKG-INFO +1 -1
  2. {npcpy-1.2.16 → npcpy-1.2.17}/npcpy/memory/command_history.py +3 -3
  3. {npcpy-1.2.16 → npcpy-1.2.17}/npcpy/memory/knowledge_graph.py +4 -0
  4. {npcpy-1.2.16 → npcpy-1.2.17}/npcpy/npc_compiler.py +3 -1
  5. {npcpy-1.2.16 → npcpy-1.2.17/npcpy.egg-info}/PKG-INFO +1 -1
  6. {npcpy-1.2.16 → npcpy-1.2.17}/setup.py +1 -1
  7. {npcpy-1.2.16 → npcpy-1.2.17}/LICENSE +0 -0
  8. {npcpy-1.2.16 → npcpy-1.2.17}/MANIFEST.in +0 -0
  9. {npcpy-1.2.16 → npcpy-1.2.17}/README.md +0 -0
  10. {npcpy-1.2.16 → npcpy-1.2.17}/npcpy/__init__.py +0 -0
  11. {npcpy-1.2.16 → npcpy-1.2.17}/npcpy/data/__init__.py +0 -0
  12. {npcpy-1.2.16 → npcpy-1.2.17}/npcpy/data/audio.py +0 -0
  13. {npcpy-1.2.16 → npcpy-1.2.17}/npcpy/data/data_models.py +0 -0
  14. {npcpy-1.2.16 → npcpy-1.2.17}/npcpy/data/image.py +0 -0
  15. {npcpy-1.2.16 → npcpy-1.2.17}/npcpy/data/load.py +0 -0
  16. {npcpy-1.2.16 → npcpy-1.2.17}/npcpy/data/text.py +0 -0
  17. {npcpy-1.2.16 → npcpy-1.2.17}/npcpy/data/video.py +0 -0
  18. {npcpy-1.2.16 → npcpy-1.2.17}/npcpy/data/web.py +0 -0
  19. {npcpy-1.2.16 → npcpy-1.2.17}/npcpy/ft/__init__.py +0 -0
  20. {npcpy-1.2.16 → npcpy-1.2.17}/npcpy/ft/diff.py +0 -0
  21. {npcpy-1.2.16 → npcpy-1.2.17}/npcpy/ft/ge.py +0 -0
  22. {npcpy-1.2.16 → npcpy-1.2.17}/npcpy/ft/memory_trainer.py +0 -0
  23. {npcpy-1.2.16 → npcpy-1.2.17}/npcpy/ft/rl.py +0 -0
  24. {npcpy-1.2.16 → npcpy-1.2.17}/npcpy/ft/sft.py +0 -0
  25. {npcpy-1.2.16 → npcpy-1.2.17}/npcpy/gen/__init__.py +0 -0
  26. {npcpy-1.2.16 → npcpy-1.2.17}/npcpy/gen/audio_gen.py +0 -0
  27. {npcpy-1.2.16 → npcpy-1.2.17}/npcpy/gen/embeddings.py +0 -0
  28. {npcpy-1.2.16 → npcpy-1.2.17}/npcpy/gen/image_gen.py +0 -0
  29. {npcpy-1.2.16 → npcpy-1.2.17}/npcpy/gen/response.py +0 -0
  30. {npcpy-1.2.16 → npcpy-1.2.17}/npcpy/gen/video_gen.py +0 -0
  31. {npcpy-1.2.16 → npcpy-1.2.17}/npcpy/llm_funcs.py +0 -0
  32. {npcpy-1.2.16 → npcpy-1.2.17}/npcpy/main.py +0 -0
  33. {npcpy-1.2.16 → npcpy-1.2.17}/npcpy/memory/__init__.py +0 -0
  34. {npcpy-1.2.16 → npcpy-1.2.17}/npcpy/memory/kg_vis.py +0 -0
  35. {npcpy-1.2.16 → npcpy-1.2.17}/npcpy/memory/memory_processor.py +0 -0
  36. {npcpy-1.2.16 → npcpy-1.2.17}/npcpy/memory/search.py +0 -0
  37. {npcpy-1.2.16 → npcpy-1.2.17}/npcpy/mix/__init__.py +0 -0
  38. {npcpy-1.2.16 → npcpy-1.2.17}/npcpy/mix/debate.py +0 -0
  39. {npcpy-1.2.16 → npcpy-1.2.17}/npcpy/npc_sysenv.py +0 -0
  40. {npcpy-1.2.16 → npcpy-1.2.17}/npcpy/npcs.py +0 -0
  41. {npcpy-1.2.16 → npcpy-1.2.17}/npcpy/serve.py +0 -0
  42. {npcpy-1.2.16 → npcpy-1.2.17}/npcpy/sql/__init__.py +0 -0
  43. {npcpy-1.2.16 → npcpy-1.2.17}/npcpy/sql/model_runner.py +0 -0
  44. {npcpy-1.2.16 → npcpy-1.2.17}/npcpy/sql/npcsql.py +0 -0
  45. {npcpy-1.2.16 → npcpy-1.2.17}/npcpy/tools.py +0 -0
  46. {npcpy-1.2.16 → npcpy-1.2.17}/npcpy/work/__init__.py +0 -0
  47. {npcpy-1.2.16 → npcpy-1.2.17}/npcpy/work/desktop.py +0 -0
  48. {npcpy-1.2.16 → npcpy-1.2.17}/npcpy/work/plan.py +0 -0
  49. {npcpy-1.2.16 → npcpy-1.2.17}/npcpy/work/trigger.py +0 -0
  50. {npcpy-1.2.16 → npcpy-1.2.17}/npcpy.egg-info/SOURCES.txt +0 -0
  51. {npcpy-1.2.16 → npcpy-1.2.17}/npcpy.egg-info/dependency_links.txt +0 -0
  52. {npcpy-1.2.16 → npcpy-1.2.17}/npcpy.egg-info/requires.txt +0 -0
  53. {npcpy-1.2.16 → npcpy-1.2.17}/npcpy.egg-info/top_level.txt +0 -0
  54. {npcpy-1.2.16 → npcpy-1.2.17}/setup.cfg +0 -0
  55. {npcpy-1.2.16 → npcpy-1.2.17}/tests/test_audio.py +0 -0
  56. {npcpy-1.2.16 → npcpy-1.2.17}/tests/test_command_history.py +0 -0
  57. {npcpy-1.2.16 → npcpy-1.2.17}/tests/test_image.py +0 -0
  58. {npcpy-1.2.16 → npcpy-1.2.17}/tests/test_llm_funcs.py +0 -0
  59. {npcpy-1.2.16 → npcpy-1.2.17}/tests/test_load.py +0 -0
  60. {npcpy-1.2.16 → npcpy-1.2.17}/tests/test_npc_compiler.py +0 -0
  61. {npcpy-1.2.16 → npcpy-1.2.17}/tests/test_npcsql.py +0 -0
  62. {npcpy-1.2.16 → npcpy-1.2.17}/tests/test_response.py +0 -0
  63. {npcpy-1.2.16 → npcpy-1.2.17}/tests/test_serve.py +0 -0
  64. {npcpy-1.2.16 → npcpy-1.2.17}/tests/test_text.py +0 -0
  65. {npcpy-1.2.16 → npcpy-1.2.17}/tests/test_tools.py +0 -0
  66. {npcpy-1.2.16 → npcpy-1.2.17}/tests/test_web.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: npcpy
3
- Version: 1.2.16
3
+ Version: 1.2.17
4
4
  Summary: npcpy is the premier open-source library for integrating LLMs and Agents into python systems.
5
5
  Home-page: https://github.com/NPC-Worldwide/npcpy
6
6
  Author: Christopher Agostino
@@ -604,16 +604,16 @@ class CommandHistory:
604
604
 
605
605
  stmt = """
606
606
  INSERT INTO memory_lifecycle
607
- (message_id, conversation_id, npc, team, directory_path, datetime,
607
+ (message_id, conversation_id, npc, team, directory_path, timestamp,
608
608
  initial_memory, final_memory, status, model, provider)
609
609
  VALUES (:message_id, :conversation_id, :npc, :team, :directory_path,
610
- :datetime, :initial_memory, :final_memory, :status, :model, :provider)
610
+ :timestamp, :initial_memory, :final_memory, :status, :model, :provider)
611
611
  """
612
612
 
613
613
  params = {
614
614
  "message_id": message_id, "conversation_id": conversation_id,
615
615
  "npc": npc, "team": team, "directory_path": directory_path,
616
- "datetime": timestamp, "initial_memory": initial_memory,
616
+ "timestamp": timestamp, "initial_memory": initial_memory,
617
617
  "final_memory": final_memory, "status": status,
618
618
  "model": model, "provider": provider
619
619
  }
@@ -359,6 +359,7 @@ def kg_evolve_incremental(existing_kg,
359
359
  all_concept_names = list(existing_concept_names)
360
360
 
361
361
  all_new_facts = []
362
+ print(npc, npc.model, npc.provider)
362
363
 
363
364
  if new_facts:
364
365
  all_new_facts = new_facts
@@ -375,12 +376,14 @@ def kg_evolve_incremental(existing_kg,
375
376
  npc = npc,
376
377
  context=context)
377
378
  all_new_facts.extend(facts)
379
+ print(facts)
378
380
  else:
379
381
  all_new_facts = get_facts(new_content_text,
380
382
  model=model,
381
383
  provider=provider,
382
384
  npc = npc,
383
385
  context=context)
386
+ print(all_new_facts)
384
387
  else:
385
388
  print("No new content or facts provided")
386
389
  return existing_kg, {}
@@ -398,6 +401,7 @@ def kg_evolve_incremental(existing_kg,
398
401
  provider = provider,
399
402
  npc=npc,
400
403
  context=context)
404
+ print(candidate_concepts)
401
405
  print('checking group uniqueness')
402
406
  for cand_concept in candidate_concepts:
403
407
  cand_name = cand_concept['name']
@@ -746,7 +746,9 @@ class NPC:
746
746
  npc_name=self.name,
747
747
  directory_path=directory_path
748
748
  )
749
-
749
+ print('# of facts: ', len(kg_data['facts']))
750
+ print('# of facts: ', len(kg_data['concepts']))
751
+
750
752
  if not kg_data.get('facts') and not kg_data.get('concepts'):
751
753
  return self._initialize_kg_from_history()
752
754
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: npcpy
3
- Version: 1.2.16
3
+ Version: 1.2.17
4
4
  Summary: npcpy is the premier open-source library for integrating LLMs and Agents into python systems.
5
5
  Home-page: https://github.com/NPC-Worldwide/npcpy
6
6
  Author: Christopher Agostino
@@ -82,7 +82,7 @@ extra_files = package_files("npcpy/npc_team/")
82
82
 
83
83
  setup(
84
84
  name="npcpy",
85
- version="1.2.16",
85
+ version="1.2.17",
86
86
  packages=find_packages(exclude=["tests*"]),
87
87
  install_requires=base_requirements,
88
88
  extras_require={
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
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
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
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
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes