Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Message ¶
type Message struct {
Role string `json:"role"`
Content string `json:"content,omitempty"`
Raw json.RawMessage `json:"raw,omitempty"`
}
Message captures one entry of conversation history. Content is a human-readable preview; Raw carries the full JSON of the underlying anthropic.MessageParam (including tool_use and tool_result blocks) so that resuming a session leaves the model-visible history byte-identical to what was sent originally.
type State ¶
type State struct {
ID string `json:"id"`
CreatedAt time.Time `json:"created_at"`
UpdatedAt time.Time `json:"updated_at"`
Messages []Message `json:"messages"`
Model string `json:"model"`
Notes string `json:"notes,omitempty"`
// Handoff carries a structured HandoffArtifact (see
// internal/agent/handoff.go) as raw JSON so /session resume can
// surface findings / open threads / blocked tools without
// re-scanning history. Optional; older session files leave it
// absent and resume works unchanged.
Handoff json.RawMessage `json:"handoff,omitempty"`
}
Click to show internal directories.
Click to hide internal directories.