featherbit UI
Gateway rustdoc
Preparing search index...
chat/useChat
ChatController
Interface ChatController
interface
ChatController
{
activeId
:
string
|
null
;
busyThreadId
:
string
|
null
;
connection
:
ConnectionState
;
pendingConfirm
:
PendingConfirm
|
null
;
settings
:
ChatSettings
;
storageBlocked
:
boolean
;
threads
:
Thread
[]
;
clearAll
()
:
void
;
connect
()
:
Promise
<
void
>
;
deleteThread
(
id
:
string
)
:
void
;
forgetCredentials
()
:
void
;
newThread
()
:
string
;
resolveConfirm
(
run
:
boolean
)
:
void
;
saveSettings
(
next
:
ChatSettings
)
:
void
;
seedThread
(
seed
:
ThreadSeed
,
text
:
string
)
:
Promise
<
string
|
null
>
;
send
(
threadId
:
string
,
text
:
string
)
:
Promise
<
void
>
;
setActive
(
id
:
string
|
null
)
:
void
;
stop
()
:
void
;
}
Index
Properties
active
Id
busy
Thread
Id
connection
pending
Confirm
settings
storage
Blocked
threads
Methods
clear
All
connect
delete
Thread
forget
Credentials
new
Thread
resolve
Confirm
save
Settings
seed
Thread
send
set
Active
stop
Properties
active
Id
activeId
:
string
|
null
busy
Thread
Id
busyThreadId
:
string
|
null
connection
connection
:
ConnectionState
pending
Confirm
pendingConfirm
:
PendingConfirm
|
null
settings
settings
:
ChatSettings
storage
Blocked
storageBlocked
:
boolean
threads
threads
:
Thread
[]
Methods
clear
All
clearAll
()
:
void
Returns
void
connect
connect
()
:
Promise
<
void
>
Returns
Promise
<
void
>
delete
Thread
deleteThread
(
id
:
string
)
:
void
Parameters
id
:
string
Returns
void
forget
Credentials
forgetCredentials
()
:
void
Returns
void
new
Thread
newThread
()
:
string
Returns
string
resolve
Confirm
resolveConfirm
(
run
:
boolean
)
:
void
Parameters
run
:
boolean
Returns
void
save
Settings
saveSettings
(
next
:
ChatSettings
)
:
void
Parameters
next
:
ChatSettings
Returns
void
seed
Thread
seedThread
(
seed
:
ThreadSeed
,
text
:
string
)
:
Promise
<
string
|
null
>
The new thread's id, or null when a turn is already running (nothing created).
Parameters
seed
:
ThreadSeed
text
:
string
Returns
Promise
<
string
|
null
>
send
send
(
threadId
:
string
,
text
:
string
)
:
Promise
<
void
>
Parameters
threadId
:
string
text
:
string
Returns
Promise
<
void
>
set
Active
setActive
(
id
:
string
|
null
)
:
void
Parameters
id
:
string
|
null
Returns
void
stop
stop
()
:
void
Returns
void
Settings
Member Visibility
Protected
Inherited
Theme
OS
Light
Dark
On This Page
Properties
active
Id
busy
Thread
Id
connection
pending
Confirm
settings
storage
Blocked
threads
Methods
clear
All
connect
delete
Thread
forget
Credentials
new
Thread
resolve
Confirm
save
Settings
seed
Thread
send
set
Active
stop
Gateway rustdoc
featherbit UI
Loading...
The new thread's id, or null when a turn is already running (nothing created).