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)
| 1012 | // loadTeamWithConfig is like loadTeam but also returns the loaded model and |
| 1013 | // provider configuration so the runtime can be wired for model switching. |
| 1014 | func (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 | // |
no test coverage detected