RunAgent executes an agent and returns a channel of streaming events. model, when non-empty, is applied as a persistent override on the session's current agent before the turn starts.
(ctx context.Context, sessionID, agent string, messages []api.Message, model string)
| 29 | // model, when non-empty, is applied as a persistent override on the |
| 30 | // session's current agent before the turn starts. |
| 31 | RunAgent(ctx context.Context, sessionID, agent string, messages []api.Message, model string) (<-chan Event, error) |
| 32 | |
| 33 | // RunAgentWithAgentName executes an agent with a specific agent name. See RunAgent for the meaning of model. |
| 34 | RunAgentWithAgentName(ctx context.Context, sessionID, agent, agentName string, messages []api.Message, model string) (<-chan Event, error) |
no outgoing calls
no test coverage detected