Back to documentation
Preparing search index...
The search index is not available
API Reference
API Reference
langgraph-swarm
SwarmState
Variable SwarmState
Const
Swarm
State
:
AnnotationRoot
<
{
activeAgent
:
{
Root
:
(
<
S
>
(
sd
)
=>
AnnotationRoot
<
S
>
)
;
(
)
:
LastValue
<
string
>
;
(
annotation
)
:
BinaryOperatorAggregate
<
string
,
string
>
;
}
;
messages
:
langgraph
;
}
>
State schema for the multi-agent swarm.
Type declaration
active
Agent
:
{
Root
:
(
<
S
>
(
sd
)
=>
AnnotationRoot
<
S
>
)
;
(
)
:
LastValue
<
string
>
;
(
annotation
)
:
BinaryOperatorAggregate
<
string
,
string
>
;
}
(
)
:
LastValue
<
string
>
Returns
LastValue
<
string
>
(
annotation
)
:
BinaryOperatorAggregate
<
string
,
string
>
Parameters
annotation
:
SingleReducer
<
string
,
string
>
Returns
BinaryOperatorAggregate
<
string
,
string
>
Root
:
(
<
S
>
(
sd
)
=>
AnnotationRoot
<
S
>
)
<
S
>
(
sd
)
:
AnnotationRoot
<
S
>
Type Parameters
S
extends
langgraph
Parameters
sd
:
S
Returns
AnnotationRoot
<
S
>
messages
:
langgraph
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
API Reference
Loading...
State schema for the multi-agent swarm.