Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type InstinctivePlanStepHandler ¶
type InstinctivePlanStepHandler struct{}
func (*InstinctivePlanStepHandler) HandlePlanStep ¶
func (i *InstinctivePlanStepHandler) HandlePlanStep( ctx agents.AgentContext, planStep *featureextractors.PlanStep, history ...*thoughtstream.Thought, ) (*PlanStepResult, error)
type PlanStepHandler ¶
type PlanStepHandler interface { HandlePlanStep( ctx agents.AgentContext, planStep *featureextractors.PlanStep, history ...*thoughtstream.Thought, ) (*PlanStepResult, error) }
type PlanStepResult ¶
type PlanStepResult struct { Step *featureextractors.PlanStep Status *featureextractors.PlanStepStatus Thoughts []*thoughtstream.Thought }
type ResolvedPlan ¶
type ResolvedPlan struct { *featureextractors.Plan ResolvedSteps []*ResolvedPlanStep }
type ResolvedPlanStep ¶
type ResolvedPlanStep struct { *featureextractors.PlanStep PlanStepHandler }
type Singularity ¶
func NewSingularity ¶
func NewSingularity(lm *thoughtstream.Manager) (*Singularity, error)
func (*Singularity) Router ¶
func (s *Singularity) Router() agents.Router
func (*Singularity) Step ¶
func (s *Singularity) Step(ctx context.Context) ([]*thoughtstream.Thought, error)
func (*Singularity) WorldState ¶
func (s *Singularity) WorldState() agents.WorldState
type WorldState ¶
type WorldState struct { psi.NodeBase KV map[string]any Epoch int64 Cycle int64 Step int64 Time time.Time SystemMessages []chat.Message }
func NewWorldState ¶
func NewWorldState() *WorldState
func (*WorldState) Get ¶
func (w *WorldState) Get(key string) any
func (*WorldState) Set ¶
func (w *WorldState) Set(key string, value any)
Click to show internal directories.
Click to hide internal directories.