agentskit.js

HierarchicalConfig

Auto-generated API reference for HierarchicalConfig.

Interface: HierarchicalConfig<TContext>

Defined in: topologies.ts:147

#Type Parameters

#TContext

TContext = unknown

#Properties

#maxDepth?

optional maxDepth?: number

Defined in: topologies.ts:153

Maximum depth. Default 5.


#name?

optional name?: string

Defined in: topologies.ts:148


#onEvent?

optional onEvent?: TopologyObserver

Defined in: topologies.ts:154


#root

root: HierarchicalNode<TContext>

Defined in: topologies.ts:149


#route?

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

Defined in: topologies.ts:151

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