Versions in this module Expand all Collapse all v0 v0.1.3 Aug 30, 2026 v0.1.2 Aug 30, 2026 v0.1.1 Aug 28, 2026 v0.1.0 Aug 27, 2026 Changes in this version + const AskDeclinePrefix + const DeclineCycle + const DeclineDepthExceeded + const DeclineInvalid + const DeclineNoSuchRole + const DeclineNotAllowed + const DeclineParentModeUnimplemented + const DeclineQuotaExceeded + const DeclineReasonParentNonInteractive + const DeclineReasonResponderTerminal + const DeclineReasonTargetTerminal + const DeclineSpawnQuotaExceeded + const DeclineTargetNotRunning + const DefaultMaxBodyBytes + const DefaultSynopsisBytes + const ParentSentinel + var ErrInvalidMessage = errors.New("invalid agent message") + func AllowPairKey(from, to string) string + func ContentRef(body string) string + func NewMessageID() string + func RequireInReplyTo(inReplyTo string) error + func Synopsis(body string, maxBytes int) string + func ValidKind(k Kind) bool + func Validate(msg Message, maxBodyBytes int) error + type Kind string + const KindAnswer + const KindAsk + const KindFinding + const KindQuestion + const KindSteer + type LifecyclePayload struct + ContentRef string + Kind Kind + MessageID string + Synopsis string + func NewLifecyclePayload(msg Message) LifecyclePayload + type Message struct + Body string + CreatedAt time.Time + From Party + ID string + InReplyTo string + Interrupt bool + Kind Kind + Refs []string + RunID string + To Party + func NewMessage(runID string, kind Kind, from, to Party, body string, refs []string, ...) (Message, error) + type Options struct + ID string + InReplyTo string + Interrupt bool + MaxBodyBytes int + Now func() time.Time + type Party struct + Agent string + Role string + TaskID string + func (p Party) IsParent() bool + type RouteAction string + const RouteDecline + const RouteDeliver + const RouteSpawn + type RouteDecision struct + Action RouteAction + Reason string + func RouteAsk(policy RoutingPolicy, in RouteInput) RouteDecision + type RouteInput struct + AsksUsedByTask int + Blocking bool + ChainDepth int + Cycle bool + FromRole string + ReferralSpawnsUsed int + TargetRunning bool + ToRole string + type RoutingPolicy struct + Allow []string + MaxAsksPerTask int + MaxReferralDepth int + MaxReferralSpawnsPerRun int + Mode string