ART Framework API Docs
Preparing search index...
IStateRepository
Interface IStateRepository
Repository for managing ThreadConfig and AgentState.
interface
IStateRepository
{
getAgentState
(
threadId
:
string
)
:
Promise
<
null
|
AgentState
>
;
getThreadConfig
(
threadId
:
string
)
:
Promise
<
null
|
ThreadConfig
>
;
getThreadContext
(
threadId
:
string
)
:
Promise
<
null
|
ThreadContext
>
;
setAgentState
(
threadId
:
string
,
state
:
AgentState
)
:
Promise
<
void
>
;
setThreadConfig
(
threadId
:
string
,
config
:
ThreadConfig
)
:
Promise
<
void
>
;
setThreadContext
(
threadId
:
string
,
context
:
ThreadContext
)
:
Promise
<
void
>
;
}
Index
Methods
get
Agent
State
get
Thread
Config
get
Thread
Context
set
Agent
State
set
Thread
Config
set
Thread
Context
Methods
get
Agent
State
getAgentState
(
threadId
:
string
)
:
Promise
<
null
|
AgentState
>
Parameters
threadId
:
string
Returns
Promise
<
null
|
AgentState
>
get
Thread
Config
getThreadConfig
(
threadId
:
string
)
:
Promise
<
null
|
ThreadConfig
>
Parameters
threadId
:
string
Returns
Promise
<
null
|
ThreadConfig
>
get
Thread
Context
getThreadContext
(
threadId
:
string
)
:
Promise
<
null
|
ThreadContext
>
Parameters
threadId
:
string
Returns
Promise
<
null
|
ThreadContext
>
set
Agent
State
setAgentState
(
threadId
:
string
,
state
:
AgentState
)
:
Promise
<
void
>
Parameters
threadId
:
string
state
:
AgentState
Returns
Promise
<
void
>
set
Thread
Config
setThreadConfig
(
threadId
:
string
,
config
:
ThreadConfig
)
:
Promise
<
void
>
Parameters
threadId
:
string
config
:
ThreadConfig
Returns
Promise
<
void
>
set
Thread
Context
setThreadContext
(
threadId
:
string
,
context
:
ThreadContext
)
:
Promise
<
void
>
Parameters
threadId
:
string
context
:
ThreadContext
Returns
Promise
<
void
>
Settings
Member Visibility
Inherited
Theme
OS
Light
Dark
On This Page
Methods
get
Agent
State
get
Thread
Config
get
Thread
Context
set
Agent
State
set
Thread
Config
set
Thread
Context
ART Framework API Docs
Loading...
Repository for managing ThreadConfig and AgentState.