chore: formatting and minor fixes
This commit is contained in:
parent
b6d1ae637a
commit
399a3c8ef3
4 changed files with 19 additions and 19 deletions
|
|
@ -20,9 +20,9 @@ type Model struct {
|
||||||
Prompt string `json:"prompt"`
|
Prompt string `json:"prompt"`
|
||||||
Completion string `json:"completion"`
|
Completion string `json:"completion"`
|
||||||
} `json:"pricing"`
|
} `json:"pricing"`
|
||||||
Created int64 `json:"created"`
|
Created int64 `json:"created"`
|
||||||
Score float64
|
Score float64
|
||||||
LastError string
|
LastError string
|
||||||
IsReachable bool
|
IsReachable bool
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -153,15 +153,15 @@ func NewAgentLoop(
|
||||||
|
|
||||||
eventBus := NewEventBus()
|
eventBus := NewEventBus()
|
||||||
al := &AgentLoop{
|
al := &AgentLoop{
|
||||||
bus: msgBus,
|
bus: msgBus,
|
||||||
cfg: cfg,
|
cfg: cfg,
|
||||||
configPath: configPath,
|
configPath: configPath,
|
||||||
registry: registry,
|
registry: registry,
|
||||||
state: stateManager,
|
state: stateManager,
|
||||||
eventBus: eventBus,
|
eventBus: eventBus,
|
||||||
fallback: fallbackChain,
|
fallback: fallbackChain,
|
||||||
cmdRegistry: commands.NewRegistry(commands.BuiltinDefinitions()),
|
cmdRegistry: commands.NewRegistry(commands.BuiltinDefinitions()),
|
||||||
steering: newSteeringQueue(parseSteeringMode(cfg.Agents.Defaults.SteeringMode)),
|
steering: newSteeringQueue(parseSteeringMode(cfg.Agents.Defaults.SteeringMode)),
|
||||||
}
|
}
|
||||||
|
|
||||||
al.agentCacheTTL = 24 * time.Hour
|
al.agentCacheTTL = 24 * time.Hour
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue