AI SDK Kotlin
Toggle table of contents
0.3.0-beta01
common
Target filter
common
Switch theme
Search in API
Skip to content
AI SDK Kotlin
AI SDK Kotlin
/
ai.torad.aisdk.providers
/
AnthropicProviderSettings
Anthropic
Provider
Settings
class
AnthropicProviderSettings
(
source
)
Since
0.3.0-beta01
Members
Properties
api
Key
Link copied to clipboard
val
apiKey
:
String
?
auth
Token
Link copied to clipboard
val
authToken
:
String
?
base
URL
Link copied to clipboard
val
baseURL
:
String
build
Request
Url
Link copied to clipboard
val
buildRequestUrl
:
(
baseURL
:
String
,
modelId
:
String
,
isStreaming
:
Boolean
)
->
String
?
generate
Id
Link copied to clipboard
val
generateId
:
(
)
->
String
headers
Link copied to clipboard
val
headers
:
Map
<
String
,
String
>
name
Link copied to clipboard
val
name
:
String
request
Headers
Provider
Link copied to clipboard
val
requestHeadersProvider
:
suspend
(
url
:
String
,
body
:
String
,
headers
:
Map
<
String
,
String
>
)
->
Map
<
String
,
String
>
?
supported
Urls
Link copied to clipboard
val
supportedUrls
:
Map
<
String
,
List
<
String
>
>
?
transform
Request
Body
Link copied to clipboard
val
transformRequestBody
:
(
modelId
:
String
,
body
:
JsonObject
,
isStreaming
:
Boolean
)
->
JsonObject
?