MCPcopy Index your code
hub / github.com/docker/docker-agent / loadTeamWithConfig

Method loadTeamWithConfig

pkg/server/session_manager.go:1014–1021  ·  view source on GitHub ↗

loadTeamWithConfig is like loadTeam but also returns the loaded model and provider configuration so the runtime can be wired for model switching.

(ctx context.Context, agentFilename string, runConfig *config.RuntimeConfig)

Source from the content-addressed store, hash-verified

1012// loadTeamWithConfig is like loadTeam but also returns the loaded model and
1013// provider configuration so the runtime can be wired for model switching.
1014func (sm *SessionManager) loadTeamWithConfig(ctx context.Context, agentFilename string, runConfig *config.RuntimeConfig) (*teamloader.LoadResult, error) {
1015 agentSource, err := sm.resolveSource(agentFilename)
1016 if err != nil {
1017 return nil, err
1018 }
1019
1020 return teamloader.LoadWithConfig(ctx, agentSource, runConfig, loaderdefaults.Opts()...)
1021}
1022
1023// resolveSource looks up the agent source for agentFilename.
1024//

Callers 1

runtimeForSessionMethod · 0.95

Calls 2

resolveSourceMethod · 0.95
LoadWithConfigFunction · 0.92

Tested by

no test coverage detected