Skip to Content
API ReferenceType AliasesType Alias: ExternalCommandResult

Type Alias: ExternalCommandResult

ExternalCommandResult = { kind: "forward"; userInput: string; } | { kind: "final"; routedIds?: string[]; text: string; }

Defined in: src/agent_runner/agent_runner_types.ts:40 

Result of handling an external (config-driven) slash command.

  • ‘forward’: command produced a prompt that should be sent to the agent
  • ‘final’: command produced its own final answer; skip the agent run (e.g. unknown command, or a non-chat-lane command handled by a router)
Last updated on