ursa-ai 0.2.12__tar.gz → 0.2.13__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.

Potentially problematic release.


This version of ursa-ai might be problematic. Click here for more details.

Files changed (31) hide show
  1. {ursa_ai-0.2.12/src/ursa_ai.egg-info → ursa_ai-0.2.13}/PKG-INFO +1 -1
  2. {ursa_ai-0.2.12 → ursa_ai-0.2.13}/src/ursa/agents/execution_agent.py +2 -4
  3. {ursa_ai-0.2.12 → ursa_ai-0.2.13}/src/ursa/agents/planning_agent.py +3 -0
  4. {ursa_ai-0.2.12 → ursa_ai-0.2.13/src/ursa_ai.egg-info}/PKG-INFO +1 -1
  5. {ursa_ai-0.2.12 → ursa_ai-0.2.13}/LICENSE +0 -0
  6. {ursa_ai-0.2.12 → ursa_ai-0.2.13}/README.md +0 -0
  7. {ursa_ai-0.2.12 → ursa_ai-0.2.13}/pyproject.toml +0 -0
  8. {ursa_ai-0.2.12 → ursa_ai-0.2.13}/setup.cfg +0 -0
  9. {ursa_ai-0.2.12 → ursa_ai-0.2.13}/src/ursa/agents/__init__.py +0 -0
  10. {ursa_ai-0.2.12 → ursa_ai-0.2.13}/src/ursa/agents/arxiv_agent.py +0 -0
  11. {ursa_ai-0.2.12 → ursa_ai-0.2.13}/src/ursa/agents/base.py +0 -0
  12. {ursa_ai-0.2.12 → ursa_ai-0.2.13}/src/ursa/agents/code_review_agent.py +0 -0
  13. {ursa_ai-0.2.12 → ursa_ai-0.2.13}/src/ursa/agents/hypothesizer_agent.py +0 -0
  14. {ursa_ai-0.2.12 → ursa_ai-0.2.13}/src/ursa/agents/mp_agent.py +0 -0
  15. {ursa_ai-0.2.12 → ursa_ai-0.2.13}/src/ursa/agents/recall_agent.py +0 -0
  16. {ursa_ai-0.2.12 → ursa_ai-0.2.13}/src/ursa/agents/websearch_agent.py +0 -0
  17. {ursa_ai-0.2.12 → ursa_ai-0.2.13}/src/ursa/prompt_library/code_review_prompts.py +0 -0
  18. {ursa_ai-0.2.12 → ursa_ai-0.2.13}/src/ursa/prompt_library/execution_prompts.py +0 -0
  19. {ursa_ai-0.2.12 → ursa_ai-0.2.13}/src/ursa/prompt_library/hypothesizer_prompts.py +0 -0
  20. {ursa_ai-0.2.12 → ursa_ai-0.2.13}/src/ursa/prompt_library/literature_prompts.py +0 -0
  21. {ursa_ai-0.2.12 → ursa_ai-0.2.13}/src/ursa/prompt_library/planning_prompts.py +0 -0
  22. {ursa_ai-0.2.12 → ursa_ai-0.2.13}/src/ursa/prompt_library/websearch_prompts.py +0 -0
  23. {ursa_ai-0.2.12 → ursa_ai-0.2.13}/src/ursa/tools/run_command.py +0 -0
  24. {ursa_ai-0.2.12 → ursa_ai-0.2.13}/src/ursa/tools/write_code.py +0 -0
  25. {ursa_ai-0.2.12 → ursa_ai-0.2.13}/src/ursa/util/diff_renderer.py +0 -0
  26. {ursa_ai-0.2.12 → ursa_ai-0.2.13}/src/ursa/util/memory_logger.py +0 -0
  27. {ursa_ai-0.2.12 → ursa_ai-0.2.13}/src/ursa/util/parse.py +0 -0
  28. {ursa_ai-0.2.12 → ursa_ai-0.2.13}/src/ursa_ai.egg-info/SOURCES.txt +0 -0
  29. {ursa_ai-0.2.12 → ursa_ai-0.2.13}/src/ursa_ai.egg-info/dependency_links.txt +0 -0
  30. {ursa_ai-0.2.12 → ursa_ai-0.2.13}/src/ursa_ai.egg-info/requires.txt +0 -0
  31. {ursa_ai-0.2.12 → ursa_ai-0.2.13}/src/ursa_ai.egg-info/top_level.txt +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: ursa-ai
3
- Version: 0.2.12
3
+ Version: 0.2.13
4
4
  Summary: Agents for science at LANL
5
5
  Author-email: Mike Grosskopf <mikegros@lanl.gov>, Nathan Debardeleben <ndebard@lanl.gov>, Rahul Somasundaram <rsomasundaram@lanl.gov>, Isaac Michaud <imichaud@lanl.gov>, Avanish Mishra <avanish@lanl.gov>, Arthur Lui <alui@lanl.gov>, Russell Bent <rbent@lanl.gov>, Earl Lawrence <earl@lanl.gov>
6
6
  License-Expression: BSD-3-Clause
@@ -82,10 +82,8 @@ class ExecutionAgent(BaseAgent):
82
82
  os.makedirs(new_state["workspace"], exist_ok=True)
83
83
 
84
84
  # code related to symlink
85
- if (
86
- "symlinkdir" in new_state.keys()
87
- and "is_linked" not in new_state["symlinkdir"].keys()
88
- ):
85
+ sd = new_state.get("symlinkdir")
86
+ if isinstance(sd, dict) and "is_linked" not in sd:
89
87
  # symlinkdir = {"source": "foo", "dest": "bar"}
90
88
  symlinkdir = new_state["symlinkdir"]
91
89
  # user provided a symlinkdir key - let's do the linking!
@@ -39,6 +39,7 @@ class PlanningAgent(BaseAgent):
39
39
  self._initialize_agent()
40
40
 
41
41
  def generation_node(self, state: PlanningState) -> PlanningState:
42
+ print("PlanningAgent: generating . . .")
42
43
  messages = state["messages"]
43
44
  if isinstance(messages[0], SystemMessage):
44
45
  messages[0] = SystemMessage(content=self.planner_prompt)
@@ -53,6 +54,7 @@ class PlanningAgent(BaseAgent):
53
54
  }
54
55
 
55
56
  def formalize_node(self, state: PlanningState) -> PlanningState:
57
+ print("PlanningAgent: formalizing . . .")
56
58
  cls_map = {"ai": HumanMessage, "human": AIMessage}
57
59
  translated = [state["messages"][0]] + [
58
60
  cls_map[msg.type](content=msg.content)
@@ -78,6 +80,7 @@ class PlanningAgent(BaseAgent):
78
80
  }
79
81
 
80
82
  def reflection_node(self, state: PlanningState) -> PlanningState:
83
+ print("PlanningAgent: reflecting . . .")
81
84
  cls_map = {"ai": HumanMessage, "human": AIMessage}
82
85
  translated = [state["messages"][0]] + [
83
86
  cls_map[msg.type](content=msg.content)
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: ursa-ai
3
- Version: 0.2.12
3
+ Version: 0.2.13
4
4
  Summary: Agents for science at LANL
5
5
  Author-email: Mike Grosskopf <mikegros@lanl.gov>, Nathan Debardeleben <ndebard@lanl.gov>, Rahul Somasundaram <rsomasundaram@lanl.gov>, Isaac Michaud <imichaud@lanl.gov>, Avanish Mishra <avanish@lanl.gov>, Arthur Lui <alui@lanl.gov>, Russell Bent <rbent@lanl.gov>, Earl Lawrence <earl@lanl.gov>
6
6
  License-Expression: BSD-3-Clause
File without changes
File without changes
File without changes
File without changes