Back to documentation
Preparing search index...
The search index is not available
API Reference
API Reference
langgraph-swarm
CreateSwarmParams
Type alias CreateSwarmParams<AnnotationRootT, AgentAnnotationRootT>
Create
Swarm
Params
<
AnnotationRootT
,
AgentAnnotationRootT
>
:
{
agents
:
CompiledStateGraph
<
AgentAnnotationRootT
[
"State"
]
,
AgentAnnotationRootT
[
"Update"
]
,
string
,
AgentAnnotationRootT
[
"spec"
]
,
AgentAnnotationRootT
[
"spec"
]
>
[]
;
defaultActiveAgent
:
string
;
stateSchema
?:
AnnotationRootT
;
}
Type Parameters
AnnotationRootT
extends
AnnotationRoot
<
any
>
=
typeof
SwarmState
AgentAnnotationRootT
extends
AnnotationRoot
<
any
>
=
typeof
MessagesAnnotation
Type declaration
agents
:
CompiledStateGraph
<
AgentAnnotationRootT
[
"State"
]
,
AgentAnnotationRootT
[
"Update"
]
,
string
,
AgentAnnotationRootT
[
"spec"
]
,
AgentAnnotationRootT
[
"spec"
]
>
[]
default
Active
Agent
:
string
Optional
state
Schema
?:
AnnotationRootT
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
API Reference
Loading...