Documentation
¶
Index ¶
- Constants
- func Hooks(ctx Context) []agent.HookHandler
- func Skill() *skills.Skill
- func SortEvidence(evs []Evidence)
- func Tools(ctx Context) []core.Tool
- type Context
- type Evidence
- type Proposal
- type Status
- type Store
- func (s *Store) AppendEvidence(ev Evidence) (Evidence, error)
- func (s *Store) ApplyProposal(id string) (Proposal, error)
- func (s *Store) DataDir() string
- func (s *Store) HasUnsummarizedSessionEvidence(sessionID string) bool
- func (s *Store) LatestUnsummarizedSessionEvidence(sessionID string) (Evidence, bool)
- func (s *Store) ListEvidence(skill string, limit int) ([]Evidence, error)
- func (s *Store) ListProposals() ([]Proposal, error)
- func (s *Store) ReadProposal(id string) (Proposal, error)
- func (s *Store) SaveProposal(p Proposal) (Proposal, error)
- func (s *Store) Status() (Status, error)
Constants ¶
View Source
const (
PluginID = "skills-improver"
)
Variables ¶
This section is empty.
Functions ¶
func Hooks ¶
func Hooks(ctx Context) []agent.HookHandler
func SortEvidence ¶
func SortEvidence(evs []Evidence)
Types ¶
type Evidence ¶
type Evidence struct {
ID string `json:"id"`
CreatedAt time.Time `json:"created_at"`
Kind string `json:"kind"`
SessionID string `json:"session_id,omitempty"`
Turn int `json:"turn,omitempty"`
Skill string `json:"skill,omitempty"`
Prompt string `json:"prompt,omitempty"`
ToolName string `json:"tool_name,omitempty"`
ToolArgsSummary string `json:"tool_args_summary,omitempty"`
ToolResultSummary string `json:"tool_result_summary,omitempty"`
AssistantSummary string `json:"assistant_summary,omitempty"`
Metadata map[string]any `json:"metadata,omitempty"`
}
type Proposal ¶
type Proposal struct {
ID string `json:"id"`
CreatedAt time.Time `json:"created_at"`
Skill string `json:"skill"`
SkillFilePath string `json:"skill_file_path"`
OriginalSHA256 string `json:"original_sha256"`
Summary string `json:"summary"`
Risk string `json:"risk,omitempty"`
ProposedSkillMD string `json:"proposed_skill_md"`
EvidenceIDs []string `json:"evidence_ids,omitempty"`
AppliedAt time.Time `json:"applied_at,omitempty"`
AppliedSkillSHA256 string `json:"applied_skill_sha256,omitempty"`
}
type Store ¶
type Store struct {
// contains filtered or unexported fields
}
func (*Store) HasUnsummarizedSessionEvidence ¶
func (*Store) LatestUnsummarizedSessionEvidence ¶
func (*Store) ListEvidence ¶
func (*Store) ListProposals ¶
Click to show internal directories.
Click to hide internal directories.