Files
herolib/lib/ai/flow_calendar/start.v
2025-11-22 18:32:19 +01:00

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()!
}