• Function that creates a tagging chain from a Zod schema. It converts the Zod schema to a JSON schema using the zodToJsonSchema function and then calls createTaggingChain with the converted schema.

    Parameters

    • schema: ZodObject<any, any, any, any, {}>

      The Zod schema which extracted data should match.

    • llm: BaseChatModel<BaseFunctionCallOptions>

      LLM to use in the chain. Must support function calling.

    • Optional options: TaggingChainOptions

      Options for creating the tagging chain.

    Returns LLMChain<string, BaseChatModel<BaseFunctionCallOptions>>

    A new instance of LLMChain configured for tagging.

    ⚠️ Deprecated ⚠️

    This feature is deprecated and will be removed in the future.

    It is not recommended for use.

    Switch to expression language: https://js.langchain.com/docs/expression_language/ Will be removed in 0.2.0

Generated using TypeDoc