Class ProviderCommand
View or switch the AI provider for the current channel's agent.
public sealed class ProviderCommand : IChannelCommand
- Inheritance
-
ProviderCommand
- Implements
- Inherited Members
Constructors
ProviderCommand(AgentRouter, AgentPoolService, IProviderRegistry, ILogger<ProviderCommand>)
View or switch the AI provider for the current channel's agent.
public ProviderCommand(AgentRouter router, AgentPoolService pool, IProviderRegistry registry, ILogger<ProviderCommand> logger)
Parameters
routerAgentRouterpoolAgentPoolServiceregistryIProviderRegistryloggerILogger<ProviderCommand>
Properties
Description
Short description shown in help text and slash command metadata.
public string Description { get; }
Property Value
Name
Command name without prefix (e.g., "help", "usage").
public string Name { get; }
Property Value
Parameters
Optional parameters this command accepts.
public IReadOnlyList<CommandParameter> Parameters { get; }
Property Value
Methods
ExecuteAsync(CommandContext, CancellationToken)
Execute the command and return a result.
public Task<CommandResult> ExecuteAsync(CommandContext context, CancellationToken ct = default)
Parameters
contextCommandContextctCancellationToken