(ctx context.Context, req runtime.LoadTeamRequest)
| 724 | } |
| 725 | |
| 726 | func (f *runExecFlags) loadAgentFrom(ctx context.Context, req runtime.LoadTeamRequest) (*teamloader.LoadResult, error) { |
| 727 | opts := append(loaderdefaults.Opts(), teamloader.WithModelOverrides(req.ModelOverrides)) |
| 728 | if len(req.PromptFiles) > 0 { |
| 729 | opts = append(opts, teamloader.WithPromptFiles(req.PromptFiles)) |
| 730 | } |
| 731 | return teamloader.LoadWithConfig(ctx, req.Source, req.RunConfig, opts...) |
| 732 | } |
| 733 | |
| 734 | // runtimeOpts returns the runtime options derived from the current flags, |
| 735 | // the loaded team and the runtime configuration. The session store and the |
no test coverage detected