Documentation
¶
Overview ¶
Package agentterminal is the repository-internal interpretation boundary for the three agent loop terminal payloads. It deliberately exposes no public framework API: Go's internal import rule limits consumers to this repository.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Event ¶
type Event struct {
SourceMessageID string
Category string
Outcome string
Class Class
State string
LoopID string
TaskID string
RunID string
RunEntityID string
Role string
Result string
Error string
Reason string
UserID string
ChannelType string
ChannelID string
Prompt string
Model string
Iterations int
TokensIn int
TokensOut int
WorkflowSlug string
WorkflowStep string
CancelledBy string
TerminalAt time.Time
Metadata map[string]any
}
Event is the normalized internal projection shared by dispatch, AgentRun, and OTel. The source payload remains authoritative; this is not a wire type.
type Reason ¶
type Reason string
Reason is a bounded rejection class suitable for logs and metric labels.
const ( // ReasonEnvelope covers registry decode, type, and metadata rejection. ReasonEnvelope Reason = "envelope_or_type" // ReasonPayload covers nil, nonterminal, and invalid concrete payloads. ReasonPayload Reason = "payload_validation" // ReasonTimestamp covers a zero applicable terminal timestamp. ReasonTimestamp Reason = "zero_terminal_timestamp" // ReasonIdentity covers a missing source message identity. ReasonIdentity Reason = "source_identity" // ReasonCollision covers category/outcome identity collisions. ReasonCollision Reason = "identity_category_outcome_collision" )
func ErrorReason ¶
ErrorReason returns the bounded reason carried by a Decode error.
Click to show internal directories.
Click to hide internal directories.