21 lines
447 B
V
21 lines
447 B
V
module flow_calendar
|
|
|
|
import incubaid.herolib.hero.heromodels
|
|
import incubaid.herolib.core.flows
|
|
|
|
type CoordinatorProxy = flows.Coordinator
|
|
|
|
pub fn (mut c CoordinatorProxy) start(prompt string) ! {
|
|
// init the heromodels, define well chosen name, needed to call later
|
|
mut m := heromodels.new(redis: c.redis, name: 'coordinator_${c.name}')!
|
|
|
|
mut step_triage := c.step_new(
|
|
context: {
|
|
'prompt': prompt
|
|
}
|
|
f: triage
|
|
)!
|
|
|
|
c.run()!
|
|
}
|