File size: 280 Bytes
8d27c84
 
 
 
 
 
1
2
3
4
5
6
7
# factories.py
from runners.echo import EchoRunner

async def default_runner_factory(context: Dict[str, Any]) -> ILLMRunner:
    # choose runner by context["LLMRunnerType"] if you need variants
    return EchoRunner(publisher=context["_publisher"], settings=context["_settings"])