mlx-bun library API
Documentation
Preparing search index...
@mlx-bun/module-chat
@mlx-bun/module-chat
ServerMessage
Type Alias ServerMessage
ServerMessage
:
|
{
audio
:
boolean
;
genDefaults
:
ReadyGenDefaults
;
model
:
string
;
thinking
:
boolean
;
transcription
?:
boolean
;
type
:
"ready"
;
vision
:
boolean
;
}
|
{
type
:
"turn_start"
}
|
{
delta
:
string
;
type
:
"text_delta"
}
|
{
delta
:
string
;
type
:
"thinking_delta"
}
|
{
args
:
unknown
;
callId
:
string
;
tool
:
string
;
type
:
"tool_start"
}
|
{
args
:
unknown
;
callId
:
string
;
tool
:
string
;
type
:
"tool_approval_request"
;
}
|
{
callId
:
string
;
chunk
:
unknown
;
type
:
"tool_update"
}
|
{
callId
:
string
;
ok
:
boolean
;
result
:
unknown
;
type
:
"tool_end"
}
|
{
type
:
"turn_end"
}
|
{
followUp
:
readonly
string
[]
;
steering
:
readonly
string
[]
;
type
:
"queue_update"
;
}
|
{
items
:
HistoryItem
[]
;
type
:
"history"
}
|
{
activePath
?:
string
;
items
:
SessionListItem
[]
;
type
:
"sessions"
}
|
{
count
:
number
;
entryId
?:
string
;
index
:
number
;
siblingIds
:
string
[]
;
type
:
"siblings"
;
}
|
{
contextWindow
:
number
;
percent
:
number
|
null
;
tokens
:
number
|
null
;
type
:
"context"
;
}
|
{
active
:
boolean
;
pending
:
boolean
;
type
:
"coding_tools"
}
|
{
alwaysAllow
:
string
[]
;
type
:
"tool_approvals"
}
|
{
route
:
AppRouteId
;
type
:
"ui_navigate"
}
|
{
label
?:
string
;
message
?:
string
;
ref
?:
string
;
route
?:
AppRouteId
;
selector
?:
string
;
target
?:
string
;
type
:
"ui_spotlight"
;
}
|
{
message
:
string
;
type
:
"error"
}
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
Documentation
mlx-bun library API
Loading...