Back to documentation
Preparing search index...
The search index is not available
API Reference
API Reference
langgraph/prebuilt
createReactAgentAnnotation
Function createReactAgentAnnotation
createReactAgentAnnotation
<
T
extends
Record
<
string
,
any
>
=
Record
<
string
,
any
>
>
()
:
AnnotationRoot
<
{
messages
:
BinaryOperatorAggregate
<
BaseMessage
[]
,
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
[]
,
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
API Reference
Loading...