Class ChatModelUnitTests<CallOptions, OutputMessageType>

Type Parameters

Hierarchy

Constructors

Properties

cls: BaseChatModelConstructor<CallOptions, OutputMessageType>

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.

    Parameters

    • constructorArgs: RecordStringAny

      The arguments to pass to the chat model constructor.

    • chatModelHasToolCalling: boolean

      Whether the chat model has a tool calling method.

    • chatModelHasStructuredOutput: boolean

      Whether the chat model has a structured output method.

    Returns void

Generated using TypeDoc