franky-v1 / src /models /discovery_events.py
architojha's picture
adding files
4067b64
raw
history blame contribute delete
657 Bytes
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.