mlx-bun library API
Documentation
Preparing search index...
@mlx-bun/module-chat
@mlx-bun/module-chat
ClientMessage
Type Alias ClientMessage
ClientMessage
:
|
{
images
?:
ImageAttachment
[]
;
text
:
string
;
type
:
"prompt"
}
|
{
type
:
"abort"
}
|
{
alwaysAllow
?:
boolean
;
callId
:
string
;
decision
:
ApprovalDecision
;
editedArgs
?:
Record
<
string
,
unknown
>
;
type
:
"approval"
;
}
|
{
enabled
:
boolean
;
type
:
"set_thinking"
}
|
{
enabled
:
boolean
;
type
:
"set_coding_tools"
}
|
{
id
:
string
|
null
;
type
:
"set_adapter"
}
|
{
frequency_penalty
?:
number
|
null
;
min_p
?:
number
|
null
;
presence_penalty
?:
number
|
null
;
repetition_context_size
?:
number
|
null
;
repetition_penalty
?:
number
|
null
;
scope
?:
"session"
|
"next_turn"
;
seed
?:
number
|
null
;
temperature
?:
number
|
null
;
top_k
?:
number
|
null
;
top_p
?:
number
|
null
;
type
:
"set_sampling"
;
xtc_probability
?:
number
|
null
;
xtc_threshold
?:
number
|
null
;
}
|
{
text
:
string
|
null
;
type
:
"set_system_prompt"
}
|
{
type
:
"new_session"
}
|
{
type
:
"list_sessions"
}
|
{
path
:
string
;
type
:
"open_session"
}
|
{
path
:
string
;
type
:
"fork_session"
}
|
{
path
:
string
;
type
:
"delete_session"
}
|
{
type
:
"regenerate"
}
|
{
text
:
string
;
type
:
"edit_resend"
}
|
{
entryId
:
string
;
type
:
"switch_sibling"
}
|
{
context
:
AppUiContext
;
type
:
"context"
}
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
Documentation
mlx-bun library API
Loading...