QueryRoutingStrategyFactory

gitinsp.infrastructure.strategies.QueryRoutingStrategyFactory

Factory for creating query routing strategy implementations.

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any
Self type

Members list

Value members

Concrete methods

def createStrategy(strategyType: String, modelRouter: OllamaChatModel): QueryRoutingStrategy

Creates a routing strategy based on the specified strategy type.

Creates a routing strategy based on the specified strategy type.

Value parameters

modelRouter

The chat model to use (if needed)

strategyType

The type of strategy to create

Attributes

Returns

A QueryRoutingStrategy implementation