langchain.js
    Preparing search index...

    Class ProviderStrategy<T>

    Type Parameters

    • T = unknown
    Index

    Properties

    Methods

    Properties

    schema: Record<string, unknown>

    Methods

    • Parse tool arguments according to the schema. If the response is not valid, return undefined.

      Parameters

      • response: AIMessage

      Returns any

      The parsed response according to the schema type

    • Type Parameters

      • T

      Parameters

      • schema: InteropZodType<T>

      Returns ProviderStrategy<T>

    • Parameters

      • schema: Record<string, unknown>

      Returns ProviderStrategy<Record<string, unknown>>