ResolveInput resolves the user input by trying skill commands first, then agent commands. Returns the resolved content ready to send to the agent.
(ctx context.Context, input string)
| 391 | // ResolveInput resolves the user input by trying skill commands first, |
| 392 | // then agent commands. Returns the resolved content ready to send to the agent. |
| 393 | func (a *App) ResolveInput(ctx context.Context, input string) string { |
| 394 | if resolved, err := a.ResolveSkillCommand(ctx, input); err != nil { |
| 395 | return fmt.Sprintf("Error loading skill: %v", err) |
| 396 | } else if resolved != "" { |
| 397 | return resolved |
| 398 | } |
| 399 | |
| 400 | return a.ResolveCommand(ctx, input) |
| 401 | } |
| 402 | |
| 403 | // CurrentAgentModel returns the model ID for the current agent. |
| 404 | // Returns the tracked model from AgentInfoEvent, or falls back to session overrides. |