feat: create dialog for plan creation in triggers, make sure to bind the correct things in triggers. Change the norms to take one condition, rather than a list. yes, tests are probably still broken.

ref: N25B-412
This commit is contained in:
Björn Otgaar
2025-12-16 18:21:19 +01:00
parent 0b29cb5858
commit c1ef924be1
5 changed files with 377 additions and 37 deletions

View File

@@ -0,0 +1,25 @@
export type Plan = {
name: string,
id: string,
steps: PlanElement[],
}
export type PlanElement = Goal | Action
export type Goal = {
id: string,
name: string,
plan: Plan,
can_fail: boolean,
type: "goal"
}
// Actions
export type Action = SpeechAction | GestureAction | LLMAction
export type SpeechAction = { name: string, id: string, text: string, type:"speech" }
export type GestureAction = { name: string, id: string, gesture: string, type:"gesture" }
export type LLMAction = { name: string, id: string, goal: string, type:"llm" }
export type ActionTypes = "speech" | "gesture" | "llm";