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

Function Load

pkg/teamloader/teamloader.go:100–106  ·  view source on GitHub ↗

Load loads an agent team from the given source

(ctx context.Context, agentSource config.Source, runConfig *config.RuntimeConfig, opts ...Opt)

Source from the content-addressed store, hash-verified

98
99// Load loads an agent team from the given source
100func Load(ctx context.Context, agentSource config.Source, runConfig *config.RuntimeConfig, opts ...Opt) (*team.Team, error) {
101 result, err := LoadWithConfig(ctx, agentSource, runConfig, opts...)
102 if err != nil {
103 return nil, err
104 }
105 return result.Team, nil
106}
107
108// LoadWithConfig loads an agent team and returns both the team and config info
109// needed for runtime model switching.

Callers 15

loadTeamFunction · 0.92
RunFunction · 0.92
createMCPServerFunction · 0.92
loadTeamMethod · 0.92
loadTeamMethod · 0.92
TestMCP_SingleAgentFunction · 0.92
TestMCP_MultiAgentFunction · 0.92
TestRuntime_OpenAI_BasicFunction · 0.92

Calls 1

LoadWithConfigFunction · 0.85