Documentation
¶
Overview ¶
Package perception defines what the agent perceives from the world.
Index ¶
Constants ¶
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.
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.
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 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
}