Class ChatModelUnitTests<CallOptions, OutputMessageType, ConstructorArgs>Abstract

Type Parameters

  • CallOptions extends BaseChatModelCallOptions = BaseChatModelCallOptions
  • OutputMessageType extends BaseMessageChunk = BaseMessageChunk
  • ConstructorArgs extends RecordStringAny = RecordStringAny

Hierarchy

Constructors

Properties

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

Accessors

  • get multipleApiKeysRequiredMessage(): string
  • Returns string

Methods

  • Override this method if the chat model being tested does not support all expected LangSmith parameters.

    Returns Partial<LangSmithParams>

    The LangSmith parameters expected by the chat model.

  • 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
    • Optionalextra: string

    Returns void