Load loads an agent team from the given source
(ctx context.Context, agentSource config.Source, runConfig *config.RuntimeConfig, opts ...Opt)
| 98 | |
| 99 | // Load loads an agent team from the given source |
| 100 | func 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. |