langchain.js
Preparing search index...
@langchain/langgraph
prebuilt
createReactAgentAnnotation
Function createReactAgentAnnotation
createReactAgentAnnotation
<
T
extends
Record
<
string
,
any
>
=
Record
<
string
,
any
>
>
()
:
AnnotationRoot
<
{
messages
:
BinaryOperatorAggregate
<
BaseMessage
<
MessageStructure
,
MessageType
>
[]
,
Messages
,
>
;
structuredResponse
:
{
Root
:
any
;
()
:
LastValue
<
T
>
;
(
annotation
:
SingleReducer
<
T
,
T
>
)
:
BinaryOperatorAggregate
<
T
,
T
>
;
}
;
}
,
>
Type Parameters
T
extends
Record
<
string
,
any
>
=
Record
<
string
,
any
>
Returns
AnnotationRoot
<
{
messages
:
BinaryOperatorAggregate
<
BaseMessage
<
MessageStructure
,
MessageType
>
[]
,
Messages
,
>
;
structuredResponse
:
{
Root
:
any
;
()
:
LastValue
<
T
>
;
(
annotation
:
SingleReducer
<
T
,
T
>
)
:
BinaryOperatorAggregate
<
T
,
T
>
;
}
;
}
,
>
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
langchain.js
Loading...