Documentation
¶
Index ¶
- type Storage
- func (s *Storage) AppendMessages(_ context.Context, runID string, msgs ...api.Message) error
- func (s *Storage) LoadArtifacts(_ context.Context, runID string) ([]api.Artifact, error)
- func (s *Storage) LoadMessages(_ context.Context, runID string) ([]api.Message, error)
- func (s *Storage) LoadRun(_ context.Context, runID string) (*api.RunState, error)
- func (s *Storage) SaveArtifacts(_ context.Context, runID string, artifacts []api.Artifact) error
- func (s *Storage) SaveRun(_ context.Context, state *api.RunState) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Storage ¶
type Storage struct {
// contains filtered or unexported fields
}
Storage persists run state snapshots and append-only message history on disk.
func NewStorage ¶
NewStorage creates a filesystem-backed agentcore storage rooted at root.
func (*Storage) AppendMessages ¶
AppendMessages appends new messages to the authoritative jsonl log.
func (*Storage) LoadArtifacts ¶
LoadArtifacts loads the latest artifact index for a run.
func (*Storage) LoadMessages ¶
LoadMessages loads the append-only authoritative message history from messages.jsonl.
func (*Storage) SaveArtifacts ¶
SaveArtifacts persists the latest artifact index for a run.
Click to show internal directories.
Click to hide internal directories.