singularity

package
v0.0.0-...-7b96089 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 30, 2023 License: AGPL-3.0 Imports: 12 Imported by: 0

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

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

type Singularity struct {
	psi.NodeBase
	// contains filtered or unexported fields
}

func NewSingularity

func NewSingularity(lm *thoughtstream.Manager) (*Singularity, error)

func (*Singularity) Router

func (s *Singularity) Router() agents.Router

func (*Singularity) Step

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)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL