Documentation
¶
Overview ¶
Package handoffs transfers reviewed context into a fresh agent session. It never copies a native session ID, credentials, permissions or bot instructions.
Index ¶
Constants ¶
View Source
const MaxContextBytes = agent.MaxHandoffContextBytes
Variables ¶
View Source
var ErrPreviewChanged = errors.New("source context changed; refresh and review the handoff before starting")
Functions ¶
This section is empty.
Types ¶
type Preview ¶
type Preview struct {
Source registry.HandoffOrigin `json:"source"`
Context string `json:"context"`
Truncated bool `json:"truncated"`
HistorySource string `json:"historySource"` // native or recorded
Capsule agent.HandoffContext `json:"capsule"`
Digest string `json:"digest"`
Losses []agent.HandoffLoss `json:"losses,omitempty"`
}
type Request ¶
type Request struct {
NewChatID string `json:"newChatId"`
RequestID string `json:"requestId"`
TargetAgentID string `json:"targetAgentId"` // saved workspace profile, not a harness type
Task string `json:"task"`
// nil builds context from the source; an explicit value is the user's reviewed edit.
Context *string `json:"context,omitempty"`
// Binds a reviewed context to the preview that produced it. Stale first
// admissions must refresh; accepted retries recover their persisted receipt.
PreviewDigest string `json:"previewDigest,omitempty"`
}
Click to show internal directories.
Click to hide internal directories.