File size: 657 Bytes
4067b64
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
from llama_index.core.workflow import Event


class GetModulesEvent(Event):
    """
    Event to get modules. Outputs accepted modules for the task.
    """
    task: str
    modules: str


class RefineModulesEvent(Event):
    """
    Event to refine modules. Outputs refined and adapted modules.
    """
    task: str
    refined_modules: str


class ReasoningStructureEvent(Event):
    """
    Event to create reasoning structure. Outputs final reasoning structure.
    """
    task: str
    reasoning_structure: str


# TODO: Add JudgeEvent(Event) here which analyses context, judges if requirements complete,
#       and emits either loop or StopEvent.