From 5d6d0d511560c8acf22ac33e9717c2a3f6c8339e Mon Sep 17 00:00:00 2001 From: Louis Mandel Date: Fri, 26 Sep 2025 11:24:05 -0400 Subject: [PATCH] feat: add `event_loop` to the interpreter config Signed-off-by: Louis Mandel --- src/pdl/pdl.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/pdl/pdl.py b/src/pdl/pdl.py index 3aa0f466e..a1a51c538 100644 --- a/src/pdl/pdl.py +++ b/src/pdl/pdl.py @@ -1,6 +1,7 @@ import argparse import json import sys +from asyncio import AbstractEventLoop from pathlib import Path from typing import Any, Literal, Optional, TypedDict @@ -50,6 +51,8 @@ class InterpreterConfig(TypedDict, total=False): replay: dict[str, Any] """Execute the program reusing some already computed values. """ + event_loop: AbstractEventLoop + """Event loop to schedule LLM calls.""" def exec_program(