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