ursa-ai 0.2.12__py3-none-any.whl → 0.2.13__py3-none-any.whl
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.
- ursa/agents/execution_agent.py +2 -4
- ursa/agents/planning_agent.py +3 -0
- {ursa_ai-0.2.12.dist-info → ursa_ai-0.2.13.dist-info}/METADATA +1 -1
- {ursa_ai-0.2.12.dist-info → ursa_ai-0.2.13.dist-info}/RECORD +7 -7
- {ursa_ai-0.2.12.dist-info → ursa_ai-0.2.13.dist-info}/WHEEL +0 -0
- {ursa_ai-0.2.12.dist-info → ursa_ai-0.2.13.dist-info}/licenses/LICENSE +0 -0
- {ursa_ai-0.2.12.dist-info → ursa_ai-0.2.13.dist-info}/top_level.txt +0 -0
ursa/agents/execution_agent.py
CHANGED
|
@@ -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
|
-
|
|
86
|
-
|
|
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!
|
ursa/agents/planning_agent.py
CHANGED
|
@@ -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.
|
|
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
|
|
@@ -2,10 +2,10 @@ ursa/agents/__init__.py,sha256=IdwVBLlz7QydHiFSok06McIfEJed6rxrT01hZgpQig0,1008
|
|
|
2
2
|
ursa/agents/arxiv_agent.py,sha256=6pycpm1hkUNjwXF6lJ4DCF5CxOiSnS5dvpW2Qes3ZD8,14125
|
|
3
3
|
ursa/agents/base.py,sha256=uFhRLVzqhFbTZVA7IePKbUi03ATCXuvga7rzwaHy1B0,1321
|
|
4
4
|
ursa/agents/code_review_agent.py,sha256=aUDq5gT-jdl9Qs-Wewj2oz1d60xov9sN-DOYRfGNTU0,11550
|
|
5
|
-
ursa/agents/execution_agent.py,sha256
|
|
5
|
+
ursa/agents/execution_agent.py,sha256=nvKjGEj3tcYs26YzEUyZTubxzzTe_XGfzyuab-livZM,16583
|
|
6
6
|
ursa/agents/hypothesizer_agent.py,sha256=KrOoyM5znZVAIpcflGLO1sybMbyx7S7HERAXvct5zig,23295
|
|
7
7
|
ursa/agents/mp_agent.py,sha256=UyJSheMGHZpWQJL3EgYgPPqArfv6F8sndN05q4CPtyo,6015
|
|
8
|
-
ursa/agents/planning_agent.py,sha256=
|
|
8
|
+
ursa/agents/planning_agent.py,sha256=ayyNDQifPvYtQ-JYnFk3TaXWZcd_6k8qUheJGariqG8,5574
|
|
9
9
|
ursa/agents/recall_agent.py,sha256=bQk7ZJtiO5pj89A50OBDzAJ4G2F7ZdsMwmKnp1WWR7g,813
|
|
10
10
|
ursa/agents/websearch_agent.py,sha256=rCv4AWbqe5Us4FmuypM6jptri21nKoNg044ncsu9u3E,8014
|
|
11
11
|
ursa/prompt_library/code_review_prompts.py,sha256=-HuhwW9W_p2LDn44bXLntxLADHCOyl-2KIXxRHto66w,2444
|
|
@@ -19,8 +19,8 @@ ursa/tools/write_code.py,sha256=DtCsUMZegYm0mk-HMPG5Zo3Ba1gbGfnXHsv1NZTdDs8,1220
|
|
|
19
19
|
ursa/util/diff_renderer.py,sha256=1L1q2qWWb8gLhR532-LgJn2TrqXDx0gUpPVOWD_sqeU,4086
|
|
20
20
|
ursa/util/memory_logger.py,sha256=9tNPF3Fgth4ImpNbs7Qg5Ci6Hb1ziMWsDTsqjkDi1iY,6096
|
|
21
21
|
ursa/util/parse.py,sha256=M0cjyQWmjatxX4WbVmDRUiirTLyW-t_Aemlrlrsc5nA,2811
|
|
22
|
-
ursa_ai-0.2.
|
|
23
|
-
ursa_ai-0.2.
|
|
24
|
-
ursa_ai-0.2.
|
|
25
|
-
ursa_ai-0.2.
|
|
26
|
-
ursa_ai-0.2.
|
|
22
|
+
ursa_ai-0.2.13.dist-info/licenses/LICENSE,sha256=4Vr6_u2zTHIUvYjoOBg9ztDbfpV3hyCFv3mTCS87gYU,1482
|
|
23
|
+
ursa_ai-0.2.13.dist-info/METADATA,sha256=3F0m31Cwq1SYV6GNxkBgXcclvV359UtH-h-GoNwQ6h0,6833
|
|
24
|
+
ursa_ai-0.2.13.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
|
25
|
+
ursa_ai-0.2.13.dist-info/top_level.txt,sha256=OjA1gRYSUAeiXGnpqPC8iOOGfcjFO1IlP848qMnYSdY,5
|
|
26
|
+
ursa_ai-0.2.13.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|