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

Method loadTeam

pkg/server/session_manager.go:1003–1010  ·  view source on GitHub ↗
(ctx context.Context, agentFilename string, runConfig *config.RuntimeConfig)

Source from the content-addressed store, hash-verified

1001}
1002
1003func (sm *SessionManager) loadTeam(ctx context.Context, agentFilename string, runConfig *config.RuntimeConfig) (*team.Team, error) {
1004 agentSource, err := sm.resolveSource(agentFilename)
1005 if err != nil {
1006 return nil, err
1007 }
1008
1009 return teamloader.Load(ctx, agentSource, runConfig, loaderdefaults.Opts()...)
1010}
1011
1012// loadTeamWithConfig is like loadTeam but also returns the loaded model and
1013// provider configuration so the runtime can be wired for model switching.

Callers 1

GetAgentToolCountMethod · 0.95

Calls 2

resolveSourceMethod · 0.95
LoadFunction · 0.92

Tested by

no test coverage detected