Class ChatModelUnitTests<CallOptions, OutputMessageType, ConstructorArgs>Abstract

Type Parameters

Hierarchy

Constructors

Properties

Cls: BaseChatModelConstructor<CallOptions, OutputMessageType, ConstructorArgs>
chatModelHasStructuredOutput: boolean
chatModelHasToolCalling: boolean
constructorArgs: ConstructorArgs

Accessors

Methods

  • Run all unit tests for the chat model. Each test is wrapped in a try/catch block to prevent the entire test suite from failing. If a test fails, the error is logged to the console, and the test suite continues.

    Returns boolean

  • Log a warning message when skipping a test.

    Parameters

    • testName: string
    • chatClassName: string
    • Optional extra: string

    Returns void

Generated using TypeDoc