Gaunt Sloth Assistant - v1.5.0
GitHub
Preparing search index...
gaunt-sloth-assistant
core/types
GthAgentInterface
Interface GthAgentInterface
interface
GthAgentInterface
{
cleanup
?
()
:
Promise
<
void
>
;
init
(
command
:
GthCommand
|
undefined
,
configIn
:
GthConfig
,
checkpointSaver
?:
BaseCheckpointSaver
<
number
>
,
)
:
Promise
<
void
>
;
invoke
(
messages
:
Message
[]
,
runConfig
:
RunnableConfig
)
:
Promise
<
string
>
;
stream
(
messages
:
Message
[]
,
runConfig
:
RunnableConfig
,
)
:
Promise
<
IterableReadableStream
<
string
>
>
;
}
Implemented by
GthLangChainAgent
Index
Methods
cleanup?
init
invoke
stream
Methods
Optional
cleanup
cleanup
?
()
:
Promise
<
void
>
Returns
Promise
<
void
>
init
init
(
command
:
GthCommand
|
undefined
,
configIn
:
GthConfig
,
checkpointSaver
?:
BaseCheckpointSaver
<
number
>
,
)
:
Promise
<
void
>
Parameters
command
:
GthCommand
|
undefined
configIn
:
GthConfig
Optional
checkpointSaver
:
BaseCheckpointSaver
<
number
>
Returns
Promise
<
void
>
invoke
invoke
(
messages
:
Message
[]
,
runConfig
:
RunnableConfig
)
:
Promise
<
string
>
Parameters
messages
:
Message
[]
runConfig
:
RunnableConfig
Returns
Promise
<
string
>
stream
stream
(
messages
:
Message
[]
,
runConfig
:
RunnableConfig
,
)
:
Promise
<
IterableReadableStream
<
string
>
>
Parameters
messages
:
Message
[]
runConfig
:
RunnableConfig
Returns
Promise
<
IterableReadableStream
<
string
>
>
Settings
Member Visibility
Protected
Inherited
External
Alpha
Beta
Theme
OS
Light
Dark
On This Page
Methods
cleanup
init
invoke
stream
GitHub
Gaunt Sloth Assistant - v1.5.0
Loading...