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