返回文档
准备搜索索引...
搜索索引不可用
API 参考
API 参考
langgraph/prebuilt
createReactAgentAnnotation
函数 createReactAgentAnnotation
create
React
Agent
Annotation
<
T
>
(
)
:
AnnotationRoot
<
{
messages
:
BinaryOperatorAggregate
<
BaseMessage
[]
,
Messages
>
;
structuredResponse
:
{
Root
:
(
<
S
>
(
sd
)
=>
AnnotationRoot
<
S
>
)
;
(
)
:
LastValue
<
T
>
;
(
annotation
)
:
BinaryOperatorAggregate
<
T
,
T
>
;
}
;
}
>
类型参数
T
extends
Record
<
string
,
any
>
=
Record
<
string
,
any
>
返回值
AnnotationRoot
<
{
messages
:
BinaryOperatorAggregate
<
BaseMessage
[]
,
Messages
>
;
structuredResponse
:
{
Root
:
(
<
S
>
(
sd
)
=>
AnnotationRoot
<
S
>
)
;
(
)
:
LastValue
<
T
>
;
(
annotation
)
:
BinaryOperatorAggregate
<
T
,
T
>
;
}
;
}
>
设置
成员可见性
受保护的
继承的
外部的
主题
操作系统
浅色
深色
API 参考
加载中...