Ask a question to get started
Enter to sendā¢Shift+Enter new line
Model wrapper that returns outputs formatted to match the given schema.
withStructuredOutput< RunOutput extends Record<string, any> = Record<string, any> >( schema: SerializableSchema<RunOutput>, config: StructuredOutputMethodOptions<false> ): Runnable<BaseLanguageModelInput, RunOutput>
schema
SerializableSchema<RunOutput>
config
StructuredOutputMethodOptions<false>