Documentation
¶
Index ¶
- type Mode
- type Tool
- func (x *Tool) Configure(_ context.Context) error
- func (x *Tool) Description() string
- func (x *Tool) Flags() []cli.Flag
- func (x *Tool) Helper() *cli.Command
- func (x *Tool) ID() string
- func (x *Tool) LogValue() slog.Value
- func (x *Tool) Prompt(_ context.Context) (string, error)
- func (x *Tool) Run(ctx context.Context, name string, args map[string]any) (map[string]any, error)
- func (x *Tool) Specs(_ context.Context) ([]gollem.ToolSpec, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Mode ¶ added in v0.14.0
type Mode int
Mode controls which tool commands are available.
const ( // ModeReadOnly provides search + tag list only (for plan/child agent). ModeReadOnly Mode = iota // ModeReadWrite provides search + save + delete + tag management (for reflection agent). ModeReadWrite // ModeSearchOnly provides search only (for child task agent). // Tag list is provided via prompt, so knowledge_tag_list is not needed. ModeSearchOnly )
type Tool ¶ added in v0.14.0
type Tool struct {
// contains filtered or unexported fields
}
Tool provides knowledge_* tool commands for LLM agents.
func New ¶
func New(svc *svcknowledge.Service, category types.KnowledgeCategory, mode Mode) *Tool
New creates a new knowledge v2 tool. category is fixed per use case (e.g., "fact" for investigation context, "technique" for analysis procedures).
func (*Tool) Description ¶ added in v0.14.0
Click to show internal directories.
Click to hide internal directories.