Skip to main content Link Search Menu Expand Document (external link)

AnthropicLanguageModel.ts overview

Since v1.0.0


Exports Grouped by Category


Configuration

withConfigOverride

Signature

declare const withConfigOverride: {
  (config: Config.Service): <A, E, R>(self: Effect.Effect<A, E, R>) => Effect.Effect<A, E, R>
  <A, E, R>(self: Effect.Effect<A, E, R>, config: Config.Service): Effect.Effect<A, E, R>
}

Source

Since v1.0.0

Context

Config (class)

Signature

declare class Config

Source

Since v1.0.0

ProviderMetadata (class)

Signature

declare class ProviderMetadata

Source

Since v1.0.0

Models

Model (type alias)

Signature

type Model = typeof Generated.Model.Encoded

Source

Since v1.0.0

model

Signature

declare const model: (
  model: (string & {}) | Model,
  config?: Omit<Config.Service, "model">
) => AiModel.AiModel<AiLanguageModel.AiLanguageModel | Tokenizer.Tokenizer, AnthropicClient>

Source

Since v1.0.0

utils

Config (namespace)

Source

Since v1.0.0

Service (interface)

Signature

export interface Service
  extends Simplify<
    Partial<Omit<typeof Generated.CreateMessageParams.Encoded, "messages" | "tools" | "tool_choice" | "stream">>
  > {}

Source

Since v1.0.0

ProviderMetadata (namespace)

Source

Since v1.0.0

Service (interface)

Signature

export interface Service {
  /**
   * Which custom stop sequence was generated, if any.
   *
   * Will be a non-null string if one of your custom stop sequences was
   * generated.
   */
  readonly stopSequence?: string
}

Source

Since v1.0.0