Preparing search index...
The search index is not available
Theia TypeDoc
Theia TypeDoc
ai-anthropic
AnthropicModel
Class AnthropicModel
Implements
LanguageModel
Index
Constructors
constructor
Properties
api
Key
default
Request
Settings?
enable
Streaming
id
model
Methods
get
Settings
handle
Non
Streaming
Request
handle
Streaming
Request
initialize
Anthropic
request
Constructors
constructor
new
Anthropic
Model
(
id
,
model
,
enableStreaming
,
apiKey
,
defaultRequestSettings
?
)
:
AnthropicModel
Parameters
id
:
string
model
:
string
enableStreaming
:
boolean
apiKey
:
(
(
)
=>
undefined
|
string
)
(
)
:
undefined
|
string
Returns
undefined
|
string
Optional
defaultRequestSettings
:
{
[
key
:
string
]
:
unknown
;
}
[
key
:
string
]:
unknown
Returns
AnthropicModel
Properties
api
Key
api
Key
:
(
(
)
=>
undefined
|
string
)
Type declaration
(
)
:
undefined
|
string
Returns
undefined
|
string
Optional
default
Request
Settings
default
Request
Settings
?:
{
[
key
:
string
]
:
unknown
;
}
Type declaration
[
key
:
string
]:
unknown
enable
Streaming
enable
Streaming
:
boolean
Readonly
id
id
:
string
model
model
:
string
Methods
Protected
get
Settings
get
Settings
(
request
)
:
Record
<
string
,
unknown
>
Parameters
request
:
LanguageModelRequest
Returns
Record
<
string
,
unknown
>
Protected
handle
Non
Streaming
Request
handle
Non
Streaming
Request
(
anthropic
,
request
)
:
Promise
<
LanguageModelTextResponse
>
Parameters
anthropic
:
Anthropic
request
:
LanguageModelRequest
Returns
Promise
<
LanguageModelTextResponse
>
Protected
handle
Streaming
Request
handle
Streaming
Request
(
anthropic
,
request
,
cancellationToken
?
)
:
Promise
<
LanguageModelStreamResponse
>
Parameters
anthropic
:
Anthropic
request
:
LanguageModelRequest
Optional
cancellationToken
:
CancellationToken
Returns
Promise
<
LanguageModelStreamResponse
>
Protected
initialize
Anthropic
initialize
Anthropic
(
)
:
Anthropic
Returns
Anthropic
request
request
(
request
,
cancellationToken
?
)
:
Promise
<
LanguageModelResponse
>
Parameters
request
:
LanguageModelRequest
Optional
cancellationToken
:
CancellationToken
Returns
Promise
<
LanguageModelResponse
>
Settings
Member Visibility
Protected
Private
Inherited
Theme
OS
Light
Dark
On This Page
constructor
api
Key
default
Request
Settings
enable
Streaming
id
model
get
Settings
handle
Non
Streaming
Request
handle
Streaming
Request
initialize
Anthropic
request
Theia TypeDoc
Loading...