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