agentskit.js

HierarchicalConfig

Auto-generated API reference for HierarchicalConfig.

Interface: HierarchicalConfig<TContext>

Defined in: topologies.ts:165

#Type Parameters

#TContext

TContext = unknown

#Properties

#maxDepth?

optional maxDepth?: number

Defined in: topologies.ts:171

Maximum depth. Default 5.


#name?

optional name?: string

Defined in: topologies.ts:166


#onEvent?

optional onEvent?: TopologyObserver

Defined in: topologies.ts:172


#root

root: HierarchicalNode<TContext>

Defined in: topologies.ts:167


#route?

optional route?: (input) => HierarchicalNode<TContext> | undefined

Defined in: topologies.ts:169

Pick which child (if any) to descend into. Return undefined to stop.

#Parameters

input
node

HierarchicalNode<TContext>

task

string

#Returns

HierarchicalNode<TContext> | undefined

Explore nearby

✎ Edit this page on GitHubΒ·Found a problem? Open an issue β†’Β·How to contribute β†’

On this page