Versions in this module Expand all Collapse all v1 v1.0.4 Jun 21, 2026 v1.0.3 Jun 21, 2026 v1.0.0 Jun 21, 2026 Changes in this version + func NewIdentityTool(inner Identity) tool.Tool + func NewLearnTool(inner Learn) tool.Tool + func NewRecallTool(inner Recall) tool.Tool + func NewTrustTool(inner Trust) tool.Tool + type Bash interface + Exec func(ctx context.Context, command string, bg bool) BashOut + func NewBash(sb Sandbox) Bash + type BashOut struct + ExitCode int + JobID string + Output string + type Chunk struct + Data json.RawMessage + Text string + ToolID string + Type ChunkType + type ChunkType int + const ChunkError + const ChunkReasoning + const ChunkText + const ChunkToolCall + const ChunkToolResult + const ChunkUsage + type Controller interface + Cancel func() + Events func() <-chan Event + Send func(ctx context.Context, input string) error + SetPlanMode func(bool) + type EditFile interface + Edit func(ctx context.Context, path, oldString, newString string) error + func NewEditFile(roots []string, workDir string) EditFile + type Event struct + Error string + Kind EventKind + Text string + Tool *ToolEvent + type EventKind int + const EventReasoning + const EventText + const EventToolCall + const EventToolResult + const EventTurnDone + const EventTurnStarted + type Fact struct + CreatedAt time.Time + ID string + Key string + Scope string + Source string + TTL time.Duration + Tags map[string]string + Value string + type FileContent struct + Binary bool + Content string + Error string + Lines int + Path string + Size int + Truncated bool + type Grep interface + Search func(ctx context.Context, pattern, path string) ([]Match, error) + func NewGrep(roots []string, workDir string) Grep + type Identity interface + ListUsers func(ctx context.Context) ([]User, error) + SetUser func(ctx context.Context, id string) error + Whoami func(ctx context.Context) User + func NewIdentity() Identity + type Kernel struct + Bash Bash + Controller Controller + EditFile EditFile + Grep Grep + Identity Identity + Learn Learn + Provider Provider + ReadFile ReadFile + Recall Recall + Sandbox Sandbox + Session Session + Trust Trust + WriteFile WriteFile + func (k *Kernel) IsSyscall(name string) bool + func (k *Kernel) Schema() []ToolSchema + func (k *Kernel) SyscallNames() []string + type Learn interface + Extract func(ctx context.Context, task TaskRecord) ([]Pattern, error) + Generate func(ctx context.Context, patterns []Pattern) (Skill, error) + Publish func(ctx context.Context, skill Skill) error + Stats func(ctx context.Context) LearnStats + Validate func(ctx context.Context, skill Skill) error + func NewLearn(skillsDir string) Learn + func NewLearnFromEngine(engine Learn) Learn + type LearnStats struct + AvgConfidence float64 + ExtractedToday int + SuccessRate float64 + TotalSkills int + type Match struct + Context string + File string + Line int + Text string + type Message struct + Content string + Meta json.RawMessage + Name string + Role string + type Pattern struct + Confidence float64 + Description string + Frequency int + ID string + ToolSequence []string + type PluginIsolation struct + Mode string + Network bool + ReadRoots []string + WriteRoots []string + type ProofEntry struct + AtomID string + Evidence string + ParentID string + Path string + Proposition string + SHA256 string + Timestamp time.Time + type Provider interface + Name func() string + Stream func(ctx context.Context, req Request) (<-chan Chunk, error) + func NewProvider(inner provider.Provider) Provider + type ReadFile interface + Read func(ctx context.Context, path string, offset, limit int) FileContent + func NewReadFile(roots []string, workDir string) ReadFile + type Recall interface + Forget func(ctx context.Context, query string) (int, error) + Save func(ctx context.Context, fact Fact) error + Search func(ctx context.Context, query string, limit int) ([]Fact, error) + func NewRecall(store *memory.Store) Recall + func NewRecallWithSemantic(store *memory.Store, semantic SemanticSearcher) Recall + type Request struct + Messages []Message + Temperature float64 + Tools []ToolSchema + type RunOptions struct + Env map[string]string + Network bool + TimeoutSec int + WorkDir string + type RunResult struct + Error string + ExitCode int + Output string + type Sandbox interface + Available func() bool + PluginSpec func() *PluginIsolation + Run func(ctx context.Context, command string, opts RunOptions) RunResult + func NewSandbox(spec sandbox.Spec, workDir string) Sandbox + type ScoredFact struct + Score float64 + type SemanticEngineAdapter struct + func (a *SemanticEngineAdapter) Search(ctx context.Context, query string, limit int) ([]ScoredFact, error) + type SemanticSearcher interface + Search func(ctx context.Context, query string, limit int) ([]ScoredFact, error) + func NewSemanticEngineAdapter(eng *semantic.Engine) SemanticSearcher + type Session interface + Add func(msg Message) + Compact func(ctx context.Context) error + Snapshot func() []Message + func NewSession(inner *agent.Session) Session + type Skill struct + Body string + Description string + Name string + Source string + Version int + type TaskRecord struct + DurationMs int64 + Goal string + Result string + Success bool + ToolCalls []ToolCallRec + Turns int + type ToolCallRec struct + Args string + Name string + Order int + Result string + type ToolEvent struct + Error string + ID string + Input string + Name string + Output string + ReadOnly bool + type ToolSchema struct + Description string + Name string + Schema json.RawMessage + type Trust interface + Export func(ctx context.Context) ([]ProofEntry, error) + Record func(ctx context.Context, entry ProofEntry) error + Summary func(ctx context.Context) TrustSummary + Verify func(ctx context.Context, atomID string) error + func NewTrust(pc *core.ProofChain, ac *core.AuditChain) Trust + type TrustSummary struct + EntryCount int + Healthy bool + LastAction string + type User struct + ID string + Label string + Locale string + Meta map[string]string + ModelPref string + Roles []string + func (u User) IsZero() bool + type WriteFile interface + Write func(ctx context.Context, path, content string) error + func NewWriteFile(roots []string, workDir string) WriteFile