Skip to content

AIDK API Reference / aidk-nestjs / ExecuteAgent

Variable: ExecuteAgent() ​

ts
const ExecuteAgent: (root?: Element) => CustomDecorator<typeof ROOT_TOKEN> = Execute;

Defined in: packages/nestjs/src/decorators/agent.ts:25

Decorator to mark a route handler for execution. The handler should return EngineInput, and the root JSX will be provided via metadata.

Parameters ​

ParameterType
root?Element

Returns ​

CustomDecorator<typeof ROOT_TOKEN>

Deprecated ​

Use Execute instead

Released under the MIT License.