Class FetchStreamTransport<StateType, Bag>

Transport used to stream the thread. Only applicable for custom endpoints using toLangGraphEventStream or toLangGraphEventStreamResponse.

Type Parameters

  • StateType extends Record<string, unknown> = Record<string, unknown>
  • Bag extends BagTemplate = BagTemplate

Implements

Constructors

Methods

Constructors

Methods

  • Parameters

    • payload: {
          command: undefined | Command;
          context: undefined | GetConfigurableType<Bag>;
          input: undefined | null | GetUpdateType<Bag, StateType>;
          signal: AbortSignal;
      }
      • command: undefined | Command
      • context: undefined | GetConfigurableType<Bag>
      • input: undefined | null | GetUpdateType<Bag, StateType>
      • signal: AbortSignal

    Returns Promise<AsyncGenerator<{
        data: unknown;
        event: string;
        id?: string;
    }, any, any>>