Table of Contents

Method WithRoutingFunction

Namespace
LMKit.Agents.Orchestration
Assembly
LM-Kit.NET.dll

WithRoutingFunction(Func<string, IReadOnlyDictionary<string, Agent>, string>)

Sets a function-based router.

public RouterOrchestrator WithRoutingFunction(Func<string, IReadOnlyDictionary<string, Agent>, string> routingFunction)

Parameters

routingFunction Func<string, IReadOnlyDictionary<string, Agent>, string>

Function that takes the input and available routes, and returns the route name to use.

Returns

RouterOrchestrator

This orchestrator for method chaining.