Documentation
¶
Overview ¶
Package memoryruntime owns model-backed memory injection and hidden turn extraction.
Index ¶
- type Config
- type ModelResolver
- type OrganizerRun
- type OrganizerTrigger
- type Runtime
- func (r *Runtime) ApplyOrganizerRun(ctx context.Context, runID string) (OrganizerRun, error)
- func (r *Runtime) Close() error
- func (r *Runtime) Completed(parent context.Context, turn agent.MemoryTurn)
- func (r *Runtime) Inject(ctx context.Context, workdir string) (string, error)
- func (r *Runtime) OrganizerHistory() []OrganizerRun
- func (r *Runtime) RunOrganizer(ctx context.Context, workdir string, trigger OrganizerTrigger) (OrganizerRun, error)
- func (r *Runtime) StartOrganizerScheduler(ctx context.Context, workdir string, interval time.Duration) func()
- func (r *Runtime) Tools(workdir func() string) []tools.Tool
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type OrganizerRun ¶
type OrganizerRun struct {
RunID string `json:"runId"`
Epoch uint64 `json:"epoch"`
Executor string `json:"executorId"`
Trigger OrganizerTrigger `json:"trigger"`
Phase string `json:"phase"`
Status string `json:"status"`
Workdir string `json:"workdir,omitempty"`
Model string `json:"model,omitempty"`
Scanned int `json:"scanned"`
Clusters int `json:"clusters"`
Applied int `json:"applied"`
Risk string `json:"risk"`
Pending []memory.Decision `json:"pending,omitempty"`
Warnings []string `json:"warnings,omitempty"`
CreatedAt time.Time `json:"createdAt"`
UpdatedAt time.Time `json:"updatedAt"`
}
type OrganizerTrigger ¶
type OrganizerTrigger string
const ( OrganizerManual OrganizerTrigger = "manual" OrganizerScheduled OrganizerTrigger = "scheduled" )
type Runtime ¶
type Runtime struct {
// contains filtered or unexported fields
}
func (*Runtime) ApplyOrganizerRun ¶
func (*Runtime) Completed ¶
func (r *Runtime) Completed(parent context.Context, turn agent.MemoryTurn)
func (*Runtime) OrganizerHistory ¶
func (r *Runtime) OrganizerHistory() []OrganizerRun
func (*Runtime) RunOrganizer ¶
func (r *Runtime) RunOrganizer(ctx context.Context, workdir string, trigger OrganizerTrigger) (OrganizerRun, error)
RunOrganizer executes the auditable scan -> cluster -> plan -> gate -> apply flow. Manual runs stop at gate and can be applied later with ApplyOrganizerRun.
Click to show internal directories.
Click to hide internal directories.