Skip to content

AIDK API Reference / aidk-nestjs / StreamAgent

Variable: StreamAgent() ​

ts
const StreamAgent: (root?: Element) => CustomDecorator<typeof ROOT_TOKEN> = Stream;

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

Decorator to mark a route handler for streaming 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 Stream instead

Released under the MIT License.