Migrate dependency from HF/Tachi67 to HF/aiflows
Browse files- CtrlExMem_JarvisFlow.py +1 -1
- CtrlExMem_JarvisFlow.yaml +4 -4
- JarvisFlow.py +1 -1
- JarvisFlow.yaml +1 -1
- Planner_JarvisFlow.py +1 -1
- Planner_JarvisFlow.yaml +4 -4
- __init__.py +7 -7
CtrlExMem_JarvisFlow.py
CHANGED
@@ -1,6 +1,6 @@
|
|
1 |
from typing import Dict, Any
|
2 |
|
3 |
-
from flow_modules.
|
4 |
from aiflows.base_flows import CircularFlow
|
5 |
|
6 |
|
|
|
1 |
from typing import Dict, Any
|
2 |
|
3 |
+
from flow_modules.aiflows.AbstractBossFlowModule import CtrlExMemFlow
|
4 |
from aiflows.base_flows import CircularFlow
|
5 |
|
6 |
|
CtrlExMem_JarvisFlow.yaml
CHANGED
@@ -20,7 +20,7 @@ subflows_config:
|
|
20 |
_target_: aiflows.base_flows.BranchingFlow.instantiate_from_default_config
|
21 |
subflows_config:
|
22 |
Coder:
|
23 |
-
_target_:
|
24 |
memory_files: ???
|
25 |
subflows_config:
|
26 |
Planner:
|
@@ -141,9 +141,9 @@ subflows_config:
|
|
141 |
openai: gpt-4
|
142 |
azure: azure/gpt-4
|
143 |
ask_user:
|
144 |
-
_target_:
|
145 |
re_plan:
|
146 |
-
_target_:
|
147 |
subflows_config:
|
148 |
Controller:
|
149 |
backend:
|
@@ -170,7 +170,7 @@ subflows_config:
|
|
170 |
|
171 |
|
172 |
MemoryReading:
|
173 |
-
_target_:
|
174 |
output_interface:
|
175 |
- "plan"
|
176 |
- "logs"
|
|
|
20 |
_target_: aiflows.base_flows.BranchingFlow.instantiate_from_default_config
|
21 |
subflows_config:
|
22 |
Coder:
|
23 |
+
_target_: flow_modules.aiflows.CoderFlowModule.CoderFlow.instantiate_from_default_config
|
24 |
memory_files: ???
|
25 |
subflows_config:
|
26 |
Planner:
|
|
|
141 |
openai: gpt-4
|
142 |
azure: azure/gpt-4
|
143 |
ask_user:
|
144 |
+
_target_: flow_modules.aiflows.ExtendLibraryFlowModule.ExtLibAskUserFlow.instantiate_from_default_config
|
145 |
re_plan:
|
146 |
+
_target_: flow_modules.aiflows.ReplanningFlowModule.ReplanningFlow.instantiate_from_default_config
|
147 |
subflows_config:
|
148 |
Controller:
|
149 |
backend:
|
|
|
170 |
|
171 |
|
172 |
MemoryReading:
|
173 |
+
_target_: flow_modules.aiflows.MemoryReadingFlowModule.MemoryReadingAtomicFlow.instantiate_from_default_config
|
174 |
output_interface:
|
175 |
- "plan"
|
176 |
- "logs"
|
JarvisFlow.py
CHANGED
@@ -1,4 +1,4 @@
|
|
1 |
-
from flow_modules.
|
2 |
|
3 |
class JarvisFlow(AbstractBossFlow):
|
4 |
"""JarvisFlow is a flow module for the boss Jarvis. It inherits from AbstractBossFlow. (
|
|
|
1 |
+
from flow_modules.aiflows.AbstractBossFlowModule import AbstractBossFlow
|
2 |
|
3 |
class JarvisFlow(AbstractBossFlow):
|
4 |
"""JarvisFlow is a flow module for the boss Jarvis. It inherits from AbstractBossFlow. (
|
JarvisFlow.yaml
CHANGED
@@ -7,7 +7,7 @@ memory_files: ???
|
|
7 |
|
8 |
subflows_config:
|
9 |
MemoryReading:
|
10 |
-
_target_:
|
11 |
output_interface:
|
12 |
- "plan"
|
13 |
- "logs"
|
|
|
7 |
|
8 |
subflows_config:
|
9 |
MemoryReading:
|
10 |
+
_target_: flow_modules.aiflows.MemoryReadingFlowModule.MemoryReadingAtomicFlow.instantiate_from_default_config
|
11 |
output_interface:
|
12 |
- "plan"
|
13 |
- "logs"
|
Planner_JarvisFlow.py
CHANGED
@@ -1,6 +1,6 @@
|
|
1 |
from typing import Dict, Any
|
2 |
import os
|
3 |
-
from flow_modules.
|
4 |
from aiflows.base_flows import CircularFlow
|
5 |
|
6 |
class Planner_JarvisFlow(PlanWriterFlow):
|
|
|
1 |
from typing import Dict, Any
|
2 |
import os
|
3 |
+
from flow_modules.aiflows.PlanWriterFlowModule import PlanWriterFlow
|
4 |
from aiflows.base_flows import CircularFlow
|
5 |
|
6 |
class Planner_JarvisFlow(PlanWriterFlow):
|
Planner_JarvisFlow.yaml
CHANGED
@@ -15,7 +15,7 @@ output_interface:
|
|
15 |
### Subflows specification
|
16 |
subflows_config:
|
17 |
Controller:
|
18 |
-
_target_:
|
19 |
backend:
|
20 |
api_infos: ???
|
21 |
model_name:
|
@@ -72,10 +72,10 @@ subflows_config:
|
|
72 |
**Make sure that the plan you generate is a well-indented human readable string, with numbered indexes for each step.**
|
73 |
|
74 |
PlanFileEditor:
|
75 |
-
_target_:
|
76 |
|
77 |
ParseFeedback:
|
78 |
-
_target_:
|
79 |
input_interface:
|
80 |
- "temp_plan_file_location"
|
81 |
output_interface:
|
@@ -83,7 +83,7 @@ subflows_config:
|
|
83 |
- "feedback"
|
84 |
|
85 |
ask_user:
|
86 |
-
_target_:
|
87 |
|
88 |
|
89 |
early_exit_key: "EARLY_EXIT"
|
|
|
15 |
### Subflows specification
|
16 |
subflows_config:
|
17 |
Controller:
|
18 |
+
_target_: flow_modules.aiflows.PlanWriterFlowModule.PlanWriterCtrlFlow.instantiate_from_default_config
|
19 |
backend:
|
20 |
api_infos: ???
|
21 |
model_name:
|
|
|
72 |
**Make sure that the plan you generate is a well-indented human readable string, with numbered indexes for each step.**
|
73 |
|
74 |
PlanFileEditor:
|
75 |
+
_target_: flow_modules.aiflows.PlanFileEditFlowModule.PlanFileEditAtomicFlow.instantiate_from_default_config
|
76 |
|
77 |
ParseFeedback:
|
78 |
+
_target_: flow_modules.aiflows.ParseFeedbackFlowModule.ParseFeedbackAtomicFlow.instantiate_from_default_config
|
79 |
input_interface:
|
80 |
- "temp_plan_file_location"
|
81 |
output_interface:
|
|
|
83 |
- "feedback"
|
84 |
|
85 |
ask_user:
|
86 |
+
_target_: flow_modules.aiflows.PlanWriterFlowModule.PlanWriterAskUserFlow.instantiate_from_default_config
|
87 |
|
88 |
|
89 |
early_exit_key: "EARLY_EXIT"
|
__init__.py
CHANGED
@@ -1,11 +1,11 @@
|
|
1 |
dependencies = [
|
2 |
-
{"url": "
|
3 |
-
{"url": "
|
4 |
-
{"url": "
|
5 |
-
{"url": "
|
6 |
-
{"url": "
|
7 |
-
{"url": "
|
8 |
-
{"url": "
|
9 |
{"url": "aiflows/HumanStandardInputFlowModule", "revision": "4ff043522c89a964ea3a928ce09811c51a2b5b98"},
|
10 |
{"url": "aiflows/ChatFlowModule", "revision": "297c90d08087d9ff3139521f11d1a48d7dc63ed4"},
|
11 |
]
|
|
|
1 |
dependencies = [
|
2 |
+
{"url": "aiflows/AbstractBossFlowModule", "revision": "main"},
|
3 |
+
{"url": "aiflows/MemoryReadingFlowModule", "revision": "main"},
|
4 |
+
{"url": "aiflows/PlanWriterFlowModule", "revision": "main"},
|
5 |
+
{"url": "aiflows/ExtendLibraryFlowModule", "revision": "main"},
|
6 |
+
{"url": "aiflows/RunCodeFlowModule", "revision": "main"},
|
7 |
+
{"url": "aiflows/ReplanningFlowModule", "revision": "main"},
|
8 |
+
{"url": "aiflows/CoderFlowModule", "revision": "main"},
|
9 |
{"url": "aiflows/HumanStandardInputFlowModule", "revision": "4ff043522c89a964ea3a928ce09811c51a2b5b98"},
|
10 |
{"url": "aiflows/ChatFlowModule", "revision": "297c90d08087d9ff3139521f11d1a48d7dc63ed4"},
|
11 |
]
|