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>; } Type Parameters
RunInput extends Record<string, any>
RunOutput
Type declaration
llm: RunnableInterface<BaseLanguageModelInput, BaseMessage, BaseFunctionCallOptions>
outputSchema: z.AnyZodObject | JsonSchema7Type
prompt: BasePromptTemplate<InputValues<Extract<keyof RunInput, string>>>
Optional
outputParser?: BaseOutputParser<RunOutput>
Configuration params for the createStructuredOutputRunnable method.