genkitx-aws-bedrock
    Preparing search index...

    Interface CallableLambdaFunction<F>

    Callable function type that includes the raw handler and metadata

    interface CallableLambdaFunction<F extends Flow> {
        flow: F;
        flowName: string;
        run: (
            input: FlowInput<F>,
            options?: FlowRunOptions,
        ) => Promise<FlowOutput<F>>;
        stream: (
            input: FlowInput<F>,
            options?: FlowRunOptions,
        ) => {
            output: Promise<FlowOutput<F>>;
            stream: AsyncIterable<FlowStream<F>>;
        };
        (
            event: APIGatewayProxyEvent,
            context: Context,
        ): Promise<APIGatewayProxyResult>;
    }

    Type Parameters

    • F extends Flow

    Hierarchy (View Summary)

    • Parameters

      • event: APIGatewayProxyEvent
      • context: Context

      Returns Promise<APIGatewayProxyResult>

    Index

    Properties

    Properties

    flow: F

    The underlying Genkit flow

    flowName: string

    Flow name

    run: (input: FlowInput<F>, options?: FlowRunOptions) => Promise<FlowOutput<F>>

    Execute the flow directly (for testing)

    stream: (
        input: FlowInput<F>,
        options?: FlowRunOptions,
    ) => {
        output: Promise<FlowOutput<F>>;
        stream: AsyncIterable<FlowStream<F>>;
    }

    Stream the flow directly (for testing)