MCPcopy Create free account
hub / github.com/compozy/agh / applyTaskSessionWorkerProfile

Function applyTaskSessionWorkerProfile

internal/daemon/task_runtime.go:198–206  ·  view source on GitHub ↗
(opts *session.CreateOpts, profile *taskpkg.ExecutionProfile)

Source from the content-addressed store, hash-verified

196}
197
198func applyTaskSessionWorkerProfile(opts *session.CreateOpts, profile *taskpkg.ExecutionProfile) {
199 if opts == nil || profile == nil {
200 return
201 }
202 worker := profile.Worker
203 opts.AgentName = strings.TrimSpace(worker.AgentName)
204 opts.Provider = strings.TrimSpace(worker.Provider)
205 opts.Model = strings.TrimSpace(worker.Model)
206}
207
208func applyTaskSessionSandboxProfile(opts *session.CreateOpts, profile *taskpkg.ExecutionProfile) {
209 if opts == nil || profile == nil {

Callers 1

StartTaskSessionMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected