TypedDict definitions mirroring SQLite tables for typed row access in the autocontext storage layer.
# Source: https://github.com/greyhaven-ai/autocontext | License: Apache-2.0 | Copyright You must retain, in the Source form of any Derivative Works
# Provided via justclaw.it.com; keep this notice with the code.
"""TypedDict definitions for SQLite row shapes (AC-485).
Replaces untyped dict[str, Any] returns with named, documented row types.
Each TypedDict mirrors the corresponding SQL table schema.
"""
from __future__ import annotations
from typing import TypedDict
class RunRow(TypedDict):
"""Row from the ``runs`` table (list_runs query subset)."""
run_id: str
scenario: str
minimum_generations: int
target_generations: int
executor_mode: str
status: str
created_at: str
class GenerationMetricsRow(TypedDict):
"""Row from the ``generations`` table (f
... (truncated -- full source via MCP)
See the full source, get the GitHub permalink, and search for more like it.
Get a free API key