Skip to content

Interface: ForkModelRoutingConfig<TParentIn, TReq> ​

Defined in: ast/fork-capability-node.ts:17

Conditional model routing configuration for downward child forks (.modelRouting($m => ...)).

Evaluates whether the child fork should inherit the parent actor's bound model at a specific reasoning effort or route to an explicit fallback model or pool.

Type Parameters ​

Type ParameterDefault typeDescription
TParentInunknownParent actor input payload type.
TRequnknownFork tool call request payload type.

Properties ​

PropertyModifierTypeDescriptionDefined in
inheritParentEffort?readonlyobjectOptional rule inheriting the parent actor's model with a specified reasoning effort when when(parentInput, req) holds.ast/fork-capability-node.ts:19
inheritParentEffort.effortreadonly"low" | "medium" | "high"-ast/fork-capability-node.ts:20
inheritParentEffort.whenreadonlyBivariantCallback<[parentInput: TParentIn, req: TReq], boolean>-ast/fork-capability-node.ts:21
otherwisePoolreadonly| ModelASTNode | PoolNode<ModelASTNode>Fallback model or model pool used when inheritParentEffort is not matched.ast/fork-capability-node.ts:24

Released under the MIT License.