Phase 1 of dynamic curator definitions (archie-core-trnd.1): - ToolBuilder implementation resolves declared tool names from the daemon's process-wide tool registry, returning exactly the declared set and failing closed on an unknown name. - curatorLLMRunner now carries ChatRequest.Tools and MaxSteps into core.GenerateOptions and widens ChatResult with the executed tool calls so a pass can attribute its actions. - One generic DefinitionEngine interprets a Definition (Manifest + name/enabled/instructions): its pass composes instructions with the built declared tool set, runs the model loop, and records an action per tool invocation. - [[curators]] config definitions carry the Manifest shape verbatim plus name/enabled/instructions; a definition missing interval is refused, never defaulted. - Idle curators are observable: the runtime logs a debug line when Check reports not-due.
22 lines
1.2 KiB
Go
22 lines
1.2 KiB
Go
package config
|
|
|
|
// CuratorDefinition is one [[curators]] entry: a curator definition as
|
|
// seed data. It carries the curator.Manifest shape verbatim plus the
|
|
// identity, lifecycle flag, and free-form instructions the manifest cannot
|
|
// express. A definition missing interval is refused by configuration
|
|
// validation, never defaulted.
|
|
type CuratorDefinition struct {
|
|
Name string `toml:"name" yaml:"name" json:"name"`
|
|
Enabled bool `toml:"enabled" yaml:"enabled" json:"enabled"`
|
|
Instructions string `toml:"instructions" yaml:"instructions" json:"instructions"`
|
|
|
|
Interval Duration `toml:"interval" yaml:"interval" json:"interval"`
|
|
Cooldown Duration `toml:"cooldown" yaml:"cooldown" json:"cooldown"`
|
|
OnInput bool `toml:"on_input" yaml:"on_input" json:"on_input"`
|
|
Tools []string `toml:"tools" yaml:"tools" json:"tools"`
|
|
Skills bool `toml:"skills" yaml:"skills" json:"skills"`
|
|
MemoryEngine string `toml:"memory_engine" yaml:"memory_engine" json:"memory_engine"`
|
|
Conversations bool `toml:"conversations" yaml:"conversations" json:"conversations"`
|
|
Model string `toml:"model" yaml:"model" json:"model"`
|
|
}
|