perception

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Nov 13, 2026 License: MIT Imports: 3 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package perception defines what the agent perceives from the world.

Index

Constants

View Source
const (
	KindReminder      = "reminder"
	KindCheckIn       = "check_in"
	KindDelivery      = "delivery"
	KindAction        = "action"      // what came of a tool it used
	KindObservation   = "observation" // something new a watched tool returned
	KindReviewRequest = "review_request"
)

Kinds of percept the agent makes itself when it speaks first, so a reply to it reads as an answer. What it said is on the decision.

View Source
const KindApproval = "approval"

KindApproval is the owner answering the autonomy gate. Its Payload is an Answer; it has no Text, so it is never part of the conversation.

View Source
const KindCall = "call"

KindCall is the owner's own choice on one of the agent's calls. Its Payload is a Pick; it has no Text.

Variables

This section is empty.

Functions

This section is empty.

Types

type Answer

type Answer struct {
	Approval string `json:"approval"`
	Approve  bool   `json:"approve"`
}

type Percept

type Percept struct {
	ID          ulid.ULID
	Source      string
	ExternalID  string // source's own ID, used to drop duplicates; unique per source
	Thread      string
	Speaker     string // stable key of the person who said it, e.g. "telegram:123"; "" if none
	SpeakerName string
	Kind        string
	Text        string
	Payload     json.RawMessage
	At          time.Time
}

type Pick

type Pick struct {
	Call   string `json:"call"`
	Option int    `json:"option"` // an index into its options; -1 something else
}

Jump to

Keyboard shortcuts

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