MCPcopy Create free account
hub / github.com/astercloud/aster / applyRecipeToConfig

Function applyRecipeToConfig

cmd/aster/session.go:252–258  ·  view source on GitHub ↗

applyRecipeToConfig applies recipe settings to agent config

(r *recipe.Recipe, config *types.AgentConfig, deps *agent.Dependencies)

Source from the content-addressed store, hash-verified

250
251// applyRecipeToConfig applies recipe settings to agent config
252func applyRecipeToConfig(r *recipe.Recipe, config *types.AgentConfig, deps *agent.Dependencies) {
253 if r.TemplateID != "" {
254 config.TemplateID = r.TemplateID
255 }
256
257 // TODO: Apply tools filter, extensions, etc.
258}
259
260// handleAgentEvents processes agent events and displays them
261func handleAgentEvents(ctx context.Context, eventCh <-chan types.AgentEventEnvelope, useColor bool) {

Callers 1

runSessionFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected