ursa-ai 0.2.11__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.11/src/ursa_ai.egg-info → ursa_ai-0.2.13}/PKG-INFO +3 -3
  2. {ursa_ai-0.2.11 → ursa_ai-0.2.13}/pyproject.toml +2 -2
  3. {ursa_ai-0.2.11 → ursa_ai-0.2.13}/src/ursa/agents/execution_agent.py +2 -4
  4. {ursa_ai-0.2.11 → ursa_ai-0.2.13}/src/ursa/agents/hypothesizer_agent.py +1 -1
  5. {ursa_ai-0.2.11 → ursa_ai-0.2.13}/src/ursa/agents/planning_agent.py +3 -0
  6. {ursa_ai-0.2.11 → ursa_ai-0.2.13/src/ursa_ai.egg-info}/PKG-INFO +3 -3
  7. {ursa_ai-0.2.11 → ursa_ai-0.2.13}/src/ursa_ai.egg-info/requires.txt +2 -2
  8. {ursa_ai-0.2.11 → ursa_ai-0.2.13}/LICENSE +0 -0
  9. {ursa_ai-0.2.11 → ursa_ai-0.2.13}/README.md +0 -0
  10. {ursa_ai-0.2.11 → ursa_ai-0.2.13}/setup.cfg +0 -0
  11. {ursa_ai-0.2.11 → ursa_ai-0.2.13}/src/ursa/agents/__init__.py +0 -0
  12. {ursa_ai-0.2.11 → ursa_ai-0.2.13}/src/ursa/agents/arxiv_agent.py +0 -0
  13. {ursa_ai-0.2.11 → ursa_ai-0.2.13}/src/ursa/agents/base.py +0 -0
  14. {ursa_ai-0.2.11 → ursa_ai-0.2.13}/src/ursa/agents/code_review_agent.py +0 -0
  15. {ursa_ai-0.2.11 → ursa_ai-0.2.13}/src/ursa/agents/mp_agent.py +0 -0
  16. {ursa_ai-0.2.11 → ursa_ai-0.2.13}/src/ursa/agents/recall_agent.py +0 -0
  17. {ursa_ai-0.2.11 → ursa_ai-0.2.13}/src/ursa/agents/websearch_agent.py +0 -0
  18. {ursa_ai-0.2.11 → ursa_ai-0.2.13}/src/ursa/prompt_library/code_review_prompts.py +0 -0
  19. {ursa_ai-0.2.11 → ursa_ai-0.2.13}/src/ursa/prompt_library/execution_prompts.py +0 -0
  20. {ursa_ai-0.2.11 → ursa_ai-0.2.13}/src/ursa/prompt_library/hypothesizer_prompts.py +0 -0
  21. {ursa_ai-0.2.11 → ursa_ai-0.2.13}/src/ursa/prompt_library/literature_prompts.py +0 -0
  22. {ursa_ai-0.2.11 → ursa_ai-0.2.13}/src/ursa/prompt_library/planning_prompts.py +0 -0
  23. {ursa_ai-0.2.11 → ursa_ai-0.2.13}/src/ursa/prompt_library/websearch_prompts.py +0 -0
  24. {ursa_ai-0.2.11 → ursa_ai-0.2.13}/src/ursa/tools/run_command.py +0 -0
  25. {ursa_ai-0.2.11 → ursa_ai-0.2.13}/src/ursa/tools/write_code.py +0 -0
  26. {ursa_ai-0.2.11 → ursa_ai-0.2.13}/src/ursa/util/diff_renderer.py +0 -0
  27. {ursa_ai-0.2.11 → ursa_ai-0.2.13}/src/ursa/util/memory_logger.py +0 -0
  28. {ursa_ai-0.2.11 → ursa_ai-0.2.13}/src/ursa/util/parse.py +0 -0
  29. {ursa_ai-0.2.11 → ursa_ai-0.2.13}/src/ursa_ai.egg-info/SOURCES.txt +0 -0
  30. {ursa_ai-0.2.11 → ursa_ai-0.2.13}/src/ursa_ai.egg-info/dependency_links.txt +0 -0
  31. {ursa_ai-0.2.11 → 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.11
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
@@ -21,7 +21,7 @@ Requires-Dist: arxiv<3.0,>=2.2.0
21
21
  Requires-Dist: beautifulsoup4<5.0,>=4.13.4
22
22
  Requires-Dist: coolname<3.0,>=2.2.0
23
23
  Requires-Dist: langchain<0.4,>=0.3.27
24
- Requires-Dist: langchain-community<0.4,>=0.3.27
24
+ Requires-Dist: langchain-community<0.4,>=0.3.29
25
25
  Requires-Dist: langchain-litellm<0.3,>=0.2.2
26
26
  Requires-Dist: langchain-openai<0.4,>=0.3.30
27
27
  Requires-Dist: langgraph<0.7,>=0.6.6
@@ -36,8 +36,8 @@ Requires-Dist: mp-api<0.46,>=0.45.8
36
36
  Requires-Dist: langchain-google-genai<3.0,>=2.1.9
37
37
  Requires-Dist: langchain-anthropic<0.4,>=0.3.19
38
38
  Requires-Dist: langgraph-checkpoint-sqlite<3.0,>=2.0.10
39
- Requires-Dist: duckduckgo-search<9.0,>=8.1
40
39
  Requires-Dist: langchain-ollama<0.4,>=0.3.6
40
+ Requires-Dist: ddgs>=9.5.5
41
41
  Dynamic: license-file
42
42
 
43
43
  # URSA - The Universal Research and Scientific Agent
@@ -21,7 +21,7 @@ dependencies = [
21
21
  "beautifulsoup4>=4.13.4,<5.0",
22
22
  "coolname>=2.2.0,<3.0",
23
23
  "langchain>=0.3.27,<0.4",
24
- "langchain-community>=0.3.27,<0.4",
24
+ "langchain-community>=0.3.29,<0.4",
25
25
  "langchain-litellm>=0.2.2,<0.3",
26
26
  "langchain-openai>=0.3.30,<0.4",
27
27
  "langgraph>=0.6.6,<0.7",
@@ -36,8 +36,8 @@ dependencies = [
36
36
  "langchain-google-genai>=2.1.9,<3.0",
37
37
  "langchain-anthropic>=0.3.19,<0.4",
38
38
  "langgraph-checkpoint-sqlite>=2.0.10,<3.0",
39
- "duckduckgo-search>=8.1,<9.0",
40
39
  "langchain-ollama>=0.3.6,<0.4",
40
+ "ddgs>=9.5.5",
41
41
  ]
42
42
  classifiers = [
43
43
  "Operating System :: OS Independent",
@@ -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!
@@ -500,7 +500,7 @@ class HypothesizerAgent(BaseAgent):
500
500
  final_solution="",
501
501
  )
502
502
  # Run the graph
503
- result = hypothesizer_agent.action.invoke(
503
+ result = self.action.invoke(
504
504
  initial_state,
505
505
  {
506
506
  "recursion_limit": recursion_limit,
@@ -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.11
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
@@ -21,7 +21,7 @@ Requires-Dist: arxiv<3.0,>=2.2.0
21
21
  Requires-Dist: beautifulsoup4<5.0,>=4.13.4
22
22
  Requires-Dist: coolname<3.0,>=2.2.0
23
23
  Requires-Dist: langchain<0.4,>=0.3.27
24
- Requires-Dist: langchain-community<0.4,>=0.3.27
24
+ Requires-Dist: langchain-community<0.4,>=0.3.29
25
25
  Requires-Dist: langchain-litellm<0.3,>=0.2.2
26
26
  Requires-Dist: langchain-openai<0.4,>=0.3.30
27
27
  Requires-Dist: langgraph<0.7,>=0.6.6
@@ -36,8 +36,8 @@ Requires-Dist: mp-api<0.46,>=0.45.8
36
36
  Requires-Dist: langchain-google-genai<3.0,>=2.1.9
37
37
  Requires-Dist: langchain-anthropic<0.4,>=0.3.19
38
38
  Requires-Dist: langgraph-checkpoint-sqlite<3.0,>=2.0.10
39
- Requires-Dist: duckduckgo-search<9.0,>=8.1
40
39
  Requires-Dist: langchain-ollama<0.4,>=0.3.6
40
+ Requires-Dist: ddgs>=9.5.5
41
41
  Dynamic: license-file
42
42
 
43
43
  # URSA - The Universal Research and Scientific Agent
@@ -2,7 +2,7 @@ arxiv<3.0,>=2.2.0
2
2
  beautifulsoup4<5.0,>=4.13.4
3
3
  coolname<3.0,>=2.2.0
4
4
  langchain<0.4,>=0.3.27
5
- langchain-community<0.4,>=0.3.27
5
+ langchain-community<0.4,>=0.3.29
6
6
  langchain-litellm<0.3,>=0.2.2
7
7
  langchain-openai<0.4,>=0.3.30
8
8
  langgraph<0.7,>=0.6.6
@@ -17,5 +17,5 @@ mp-api<0.46,>=0.45.8
17
17
  langchain-google-genai<3.0,>=2.1.9
18
18
  langchain-anthropic<0.4,>=0.3.19
19
19
  langgraph-checkpoint-sqlite<3.0,>=2.0.10
20
- duckduckgo-search<9.0,>=8.1
21
20
  langchain-ollama<0.4,>=0.3.6
21
+ ddgs>=9.5.5
File without changes
File without changes
File without changes