Table of Contents

Class RouteCommand

Namespace
JD.AI.Gateway.Commands
Assembly
JD.AI.Gateway.dll

View or change the agent routing for the current channel.

public sealed class RouteCommand : IChannelCommand
Inheritance
RouteCommand
Implements
Inherited Members

Constructors

RouteCommand(AgentRouter, AgentPoolService)

View or change the agent routing for the current channel.

public RouteCommand(AgentRouter router, AgentPoolService pool)

Parameters

router AgentRouter
pool AgentPoolService

Properties

Description

Short description shown in help text and slash command metadata.

public string Description { get; }

Property Value

string

Name

Command name without prefix (e.g., "help", "usage").

public string Name { get; }

Property Value

string

Parameters

Optional parameters this command accepts.

public IReadOnlyList<CommandParameter> Parameters { get; }

Property Value

IReadOnlyList<CommandParameter>

Methods

ExecuteAsync(CommandContext, CancellationToken)

Execute the command and return a result.

public Task<CommandResult> ExecuteAsync(CommandContext context, CancellationToken ct = default)

Parameters

context CommandContext
ct CancellationToken

Returns

Task<CommandResult>