The Big One #43
@@ -1,6 +1,6 @@
|
|||||||
from enum import Enum
|
from enum import Enum
|
||||||
|
|
||||||
from pydantic import BaseModel
|
from pydantic import UUID4, BaseModel
|
||||||
|
|
||||||
|
|
||||||
class ProgramElement(BaseModel):
|
class ProgramElement(BaseModel):
|
||||||
@@ -12,7 +12,7 @@ class ProgramElement(BaseModel):
|
|||||||
"""
|
"""
|
||||||
|
|
||||||
name: str
|
name: str
|
||||||
id: int
|
id: UUID4
|
||||||
|
|
||||||
|
|
||||||
class LogicalOperator(Enum):
|
class LogicalOperator(Enum):
|
||||||
@@ -32,7 +32,6 @@ class KeywordBelief(ProgramElement):
|
|||||||
"""
|
"""
|
||||||
|
|
||||||
name: str = ""
|
name: str = ""
|
||||||
id: int = -1
|
|
||||||
keyword: str
|
keyword: str
|
||||||
|
|
||||||
|
|
||||||
@@ -44,7 +43,6 @@ class SemanticBelief(ProgramElement):
|
|||||||
"""
|
"""
|
||||||
|
|
||||||
name: str = ""
|
name: str = ""
|
||||||
id: int = -1
|
|
||||||
description: str
|
description: str
|
||||||
|
|
||||||
|
|
||||||
@@ -60,7 +58,6 @@ class InferredBelief(ProgramElement):
|
|||||||
"""
|
"""
|
||||||
|
|
||||||
name: str = ""
|
name: str = ""
|
||||||
id: int = -1
|
|
||||||
operator: LogicalOperator
|
operator: LogicalOperator
|
||||||
left: Belief
|
left: Belief
|
||||||
right: Belief
|
right: Belief
|
||||||
@@ -78,7 +75,6 @@ class BasicNorm(ProgramElement):
|
|||||||
"""
|
"""
|
||||||
|
|
||||||
name: str = ""
|
name: str = ""
|
||||||
id: int = -1
|
|
||||||
norm: str
|
norm: str
|
||||||
critical: bool = False
|
critical: bool = False
|
||||||
|
|
||||||
@@ -105,7 +101,6 @@ class Plan(ProgramElement):
|
|||||||
"""
|
"""
|
||||||
|
|
||||||
name: str = ""
|
name: str = ""
|
||||||
id: int = -1
|
|
||||||
steps: list[PlanElement]
|
steps: list[PlanElement]
|
||||||
|
|
||||||
|
|
||||||
@@ -120,7 +115,6 @@ class Goal(ProgramElement):
|
|||||||
:ivar can_fail: Whether we can fail to achieve the goal after executing the plan.
|
:ivar can_fail: Whether we can fail to achieve the goal after executing the plan.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
id: int = -1
|
|
||||||
plan: Plan
|
plan: Plan
|
||||||
can_fail: bool = True
|
can_fail: bool = True
|
||||||
|
|
||||||
@@ -136,7 +130,6 @@ class SpeechAction(ProgramElement):
|
|||||||
"""
|
"""
|
||||||
|
|
||||||
name: str = ""
|
name: str = ""
|
||||||
id: int = -1
|
|
||||||
text: str
|
text: str
|
||||||
|
|
||||||
|
|
||||||
@@ -153,7 +146,6 @@ class GestureAction(ProgramElement):
|
|||||||
"""
|
"""
|
||||||
|
|
||||||
name: str = ""
|
name: str = ""
|
||||||
id: int = -1
|
|
||||||
gesture: Gesture
|
gesture: Gesture
|
||||||
|
|
||||||
|
|
||||||
@@ -166,7 +158,6 @@ class LLMAction(ProgramElement):
|
|||||||
"""
|
"""
|
||||||
|
|
||||||
name: str = ""
|
name: str = ""
|
||||||
id: int = -1
|
|
||||||
goal: str
|
goal: str
|
||||||
|
|
||||||
|
|
||||||
@@ -179,7 +170,6 @@ class Trigger(ProgramElement):
|
|||||||
"""
|
"""
|
||||||
|
|
||||||
name: str = ""
|
name: str = ""
|
||||||
id: int = -1
|
|
||||||
condition: Belief
|
condition: Belief
|
||||||
plan: Plan
|
plan: Plan
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user