Documentation
¶
Overview ¶
Package assemble provides the canonical tool assembly pipeline. All tool set construction — base tools + Task + Batch + ToolDefs — goes through this package, eliminating duplication across CLI inspection, session init, and per-turn config reload.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Params ¶
type Params struct {
Config config.Config
Paths config.Paths
Runtime *config.Runtime // nil for CLI inspection
TodoList *todo.List
Events chan<- ui.Event
PluginCache *plugins.Cache
LSPManager *lsp.Manager
Estimate func(string) int // from estimator.EstimateLocal
// Existing tools to re-inject instead of creating new ones (reload path).
// When nil, new instances are created from config.
ExistingTask *task.Tool
ExistingBatch *batch.Tool
// When true, adds Done(nil) and Ask(nil) for display/inspection.
ForDisplay bool
}
Params holds dependencies for the canonical tool assembly pipeline.
type Result ¶
type Result struct {
Tools tool.Tools
Task *task.Tool // nil if no subagent agents exist
Batch *batch.Tool
}
Result holds the assembled tool set and references to meta-tools.
func Tools ¶
Tools builds the complete tool set: base tools + Task + Batch + ToolDefs.
Pipeline:
- tools.All() — built-in + plugin + Skill + ToolDefs + availability filter
- Task tool — re-inject existing or create from subagent agents
- Batch tool — re-inject existing or create new
- Display tools — Done(nil) + Ask(nil) when ForDisplay is set
- ToolDefs.Apply — catches Task, Batch, and display tools
- Runtime.AllTools assignment (when Runtime is non-nil)
Click to show internal directories.
Click to hide internal directories.