Function
applyTaskSessionWorkerProfile
(opts *session.CreateOpts, profile *taskpkg.ExecutionProfile)
Source from the content-addressed store, hash-verified
| 196 | } |
| 197 | |
| 198 | func 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 | |
| 208 | func applyTaskSessionSandboxProfile(opts *session.CreateOpts, profile *taskpkg.ExecutionProfile) { |
| 209 | if opts == nil || profile == nil { |
Tested by
no test coverage detected