applyRecipeToConfig applies recipe settings to agent config
(r *recipe.Recipe, config *types.AgentConfig, deps *agent.Dependencies)
| 250 | |
| 251 | // applyRecipeToConfig applies recipe settings to agent config |
| 252 | func 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 |
| 261 | func handleAgentEvents(ctx context.Context, eventCh <-chan types.AgentEventEnvelope, useColor bool) { |