Skip to content

CubeLoop — a Pythonic, async-native agent harness core designed for high performance, readability, and production-grade persistence.

fix(middleware): use typing_extensions.TypedDict for Pydantic v2 on Python < 3.12

xf gongb86f980c1c42
diff --git a/cubepi/middleware/todo.py b/cubepi/middleware/todo.py
index d5b36ca..ed097cc 100644
--- a/cubepi/middleware/todo.py
+++ b/cubepi/middleware/todo.py
@@ -26,7 +26,9 @@ from __future__ import annotations
import asyncio
import json
from collections.abc import Callable
-from typing import Any, Literal, TypeAlias, TypedDict, cast
+from typing import Any, Literal, TypeAlias, cast
+
+from typing_extensions import TypedDict
from cubepi.agent.types import (
AfterToolCallContext,