AI Elements for Kotlin
Toggle table of contents
Android
Target filter
Android
Switch theme
Search in API
Skip to content
AI Elements for Kotlin
ai-elements-ui
/
dev.ai.elements.ui.chat
/
ModelOption
Model
Option
@
Immutable
data
class
ModelOption
(
val
id
:
String
,
val
name
:
String
=
id
,
val
provider
:
String
?
=
null
,
val
description
:
String
?
=
null
,
val
capabilities
:
Set
<
ModelCapability
>
=
emptySet()
,
val
contextWindow
:
Int
?
=
null
)
(
source
)
A model offered by
ModelSelector
;
provider
groups the list,
contextWindow
is in tokens.
Members
Constructors
Model
Option
Link copied to clipboard
constructor
(
id
:
String
,
name
:
String
=
id
,
provider
:
String
?
=
null
,
description
:
String
?
=
null
,
capabilities
:
Set
<
ModelCapability
>
=
emptySet()
,
contextWindow
:
Int
?
=
null
)
Properties
capabilities
Link copied to clipboard
val
capabilities
:
Set
<
ModelCapability
>
context
Window
Link copied to clipboard
val
contextWindow
:
Int
?
description
Link copied to clipboard
val
description
:
String
?
id
Link copied to clipboard
val
id
:
String
name
Link copied to clipboard
val
name
:
String
provider
Link copied to clipboard
val
provider
:
String
?