smolagents is a library that enables you to run powerful agents in a few lines of code. It offers: Simplicity: the logic for agents fits in ~1,000 lines of code (see agents.py). We kept abstractions ...
from typing import Sequence, TypedDict class TD(TypedDict): x: int seq: Sequence[TD] = ({"x": 0},) # pyrefly: `tuple[dict[str, int]]` is not assignable to `Sequence[TypedDict[TD]]` This passes both ...