File size: 345 Bytes
8d27c84
 
5cd620c
7389012
8d27c84
 
 
 
1
2
3
4
5
6
7
8
9
# factories.py
from runners.echo import EchoRunner
from runners.base import ILLMRunner
from typing import Dict, Any

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"])