File size: 1,582 Bytes
e4bccaf |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 |
# Table of Contents
* [run\_replanning](#run_replanning)
* [ReplanningAskUserFlow](#ReplanningAskUserFlow)
* [ReplanningAskUserFlow](#ReplanningAskUserFlow.ReplanningAskUserFlow)
* [NewPlanGenFlow](#NewPlanGenFlow)
* [ReplanningFlow](#ReplanningFlow)
* [ReplanningFlow](#ReplanningFlow.ReplanningFlow)
* [\_\_init\_\_](#__init__)
<a id="run_replanning"></a>
# run\_replanning
<a id="ReplanningAskUserFlow"></a>
# ReplanningAskUserFlow
<a id="ReplanningAskUserFlow.ReplanningAskUserFlow"></a>
## ReplanningAskUserFlow Objects
```python
class ReplanningAskUserFlow(HumanStandardInputFlow)
```
Refer to: https://huggingface.co/Tachi67/ExtendLibraryFlowModule/blob/main/ExtLibAskUserFlow.py
<a id="NewPlanGenFlow"></a>
# NewPlanGenFlow
<a id="ReplanningFlow"></a>
# ReplanningFlow
<a id="ReplanningFlow.ReplanningFlow"></a>
## ReplanningFlow Objects
```python
class ReplanningFlow(PlanWriterFlow)
```
This flow inherits from PlanWriterFlow.
By changing prompts and injecting proper information to the controller and the PlanGenerator, we are able to achieve the replanning.
*Input Interface*:
- `goal` (str): information on the old plan (e.g. what is wrong)
- `plan` (str): the old plan
- `plan_file_location` (str): the location of the old plan file
*Output Interface*:
- `plan` (str): the new plan
- `status`: "finished" or "unfinished"
- `summary` (str): summary of the flow, will be written to the log file of the caller flow.
- `result` (str): result of the flow, will be passed to the controller of the caller flow.
<a id="__init__"></a>
# \_\_init\_\_
|