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>
}
Since v1.0.0
Context
Config (class)
Signature
declare class Config
Since v1.0.0
ProviderMetadata (class)
Signature
declare class ProviderMetadata
Since v1.0.0
Models
Model (type alias)
Signature
type Model = typeof Generated.Model.Encoded
Since v1.0.0
model
Signature
declare const model: (
model: (string & {}) | Model,
config?: Omit<Config.Service, "model">
) => AiModel.AiModel<AiLanguageModel.AiLanguageModel | Tokenizer.Tokenizer, AnthropicClient>
Since v1.0.0
utils
Config (namespace)
Since v1.0.0
Service (interface)
Signature
export interface Service
extends Simplify<
Partial<Omit<typeof Generated.CreateMessageParams.Encoded, "messages" | "tools" | "tool_choice" | "stream">>
> {}
Since v1.0.0
ProviderMetadata (namespace)
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
}
Since v1.0.0