LangGraph.js API Reference
Back to documentation
Preparing search index...
langgraph
prebuilt
createReactAgentAnnotation
Variable createReactAgentAnnotation
Const
createReactAgentAnnotation
:
<
T
extends
Record
<
string
,
any
>
=
Record
<
string
,
any
>
,
>
()
=>
AnnotationRoot
<
{
messages
:
BinaryOperatorAggregate
<
BaseMessage
<
_langchain_core_messages23.MessageStructure
,
_langchain_core_messages23.MessageType
,
>
[]
,
Messages
,
>
;
structuredResponse
:
{
Root
:
<
S
extends
StateDefinition
>
(
sd
:
S
)
=>
AnnotationRoot
<
S
>
;
()
:
LastValue
<
T
>
;
(
annotation
:
SingleReducer
<
T
,
T
>
)
:
BinaryOperatorAggregate
<
T
,
T
>
;
}
;
}
,
>
Type Declaration
<
T
extends
Record
<
string
,
any
>
=
Record
<
string
,
any
>
>
()
:
AnnotationRoot
<
{
messages
:
BinaryOperatorAggregate
<
BaseMessage
<
_langchain_core_messages23.MessageStructure
,
_langchain_core_messages23.MessageType
,
>
[]
,
Messages
,
>
;
structuredResponse
:
{
Root
:
<
S
extends
StateDefinition
>
(
sd
:
S
)
=>
AnnotationRoot
<
S
>
;
()
:
LastValue
<
T
>
;
(
annotation
:
SingleReducer
<
T
,
T
>
)
:
BinaryOperatorAggregate
<
T
,
T
>
;
}
;
}
,
>
Type Parameters
T
extends
Record
<
string
,
any
>
=
Record
<
string
,
any
>
Returns
AnnotationRoot
<
{
messages
:
BinaryOperatorAggregate
<
BaseMessage
<
_langchain_core_messages23.MessageStructure
,
_langchain_core_messages23.MessageType
,
>
[]
,
Messages
,
>
;
structuredResponse
:
{
Root
:
<
S
extends
StateDefinition
>
(
sd
:
S
)
=>
AnnotationRoot
<
S
>
;
()
:
LastValue
<
T
>
;
(
annotation
:
SingleReducer
<
T
,
T
>
)
:
BinaryOperatorAggregate
<
T
,
T
>
;
}
;
}
,
>
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
Back to documentation
LangGraph.js API Reference
Loading...