Type alias CreateStructuredOutputRunnableConfig<RunInput, RunOutput>

CreateStructuredOutputRunnableConfig<RunInput, RunOutput>: {
    llm: RunnableInterface<BaseLanguageModelInput, BaseMessage, BaseFunctionCallOptions>;
    outputSchema: z.AnyZodObject | JsonSchema7Type;
    prompt: BasePromptTemplate<InputValues<Extract<keyof RunInput, string>>>;
    outputParser?: BaseOutputParser<RunOutput>;
}

Configuration params for the createStructuredOutputRunnable method.

Type Parameters

  • RunInput extends Record<string, any>

  • RunOutput

Type declaration

Generated using TypeDoc