MCPcopy
hub / github.com/docker/docker-agent / loadAgentFrom

Method loadAgentFrom

cmd/root/run.go:726–732  ·  view source on GitHub ↗
(ctx context.Context, req runtime.LoadTeamRequest)

Source from the content-addressed store, hash-verified

724}
725
726func (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

Callers 2

createSessionSpawnerMethod · 0.95
LoadTeamMethod · 0.80

Calls 3

WithModelOverridesFunction · 0.92
WithPromptFilesFunction · 0.92
LoadWithConfigFunction · 0.92

Tested by

no test coverage detected