Skip to content

AIDK API Reference / aidk-nestjs / Stream

Function: Stream() ​

ts
function Stream(root?: Element): CustomDecorator<typeof ROOT_TOKEN>;

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

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>

Released under the MIT License.