@ainulabs/ainu - v0.0.5
    Preparing search index...

    Class Anthropic

    Base class for all providers. This class is used to create a provider instance. It is not meant to be used directly. Each provider should extend this class and implement the methods.

    Hierarchy (View Summary)

    • Provider<AnthropicProvider, AnthropicProviderSettings, AnthropicMessagesModelId>
      • Anthropic
    Index

    Constructors

    Properties

    options: AnthropicProviderSettings
    provider: undefined | AnthropicProvider

    Methods

    • Returns the default model ID for the provider. This is used to create an ImageModelV1 instance when no modelId is provided.

      Returns AnthropicMessagesModelId

    • Returns the default model ID for the provider. This is used to create a LanguageModelV1 instance when no modelId is provided.

      Returns AnthropicMessagesModelId

    • Returns an ImageModelV1 instance for the given provider using the specified model ID or the provider's default model ID.

      Parameters

      • model: AnthropicMessagesModelId

      Returns ImageModelV1

    • Returns a LanguageModelV1 instance for the given provider using the specified model ID or the provider's default model ID.

      Parameters

      • Optionalmodel: AnthropicMessagesModelId

      Returns LanguageModelV1