(ctx context.Context, agentFilename string, runConfig *config.RuntimeConfig)
| 1001 | } |
| 1002 | |
| 1003 | func (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. |
no test coverage detected