SwitchAgent switches the currently active agent for subsequent user messages
(agentName string)
| 942 | |
| 943 | // SwitchAgent switches the currently active agent for subsequent user messages |
| 944 | func (a *App) SwitchAgent(agentName string) error { |
| 945 | // Called from the Bubble Tea event loop, which has no context; this is |
| 946 | // a TUI-root boundary. |
| 947 | return a.runtime.SetCurrentAgent(a.ctx(), agentName) |
| 948 | } |
| 949 | |
| 950 | // SetCurrentAgentModel sets the model for the current agent and persists |
| 951 | // the override in the session. Returns an error if model switching is not |
no test coverage detected