Skip to content

Conversation

@mattzh72
Copy link
Collaborator

@mattzh72 mattzh72 commented Oct 23, 2025

Improves package import ergonomics by exporting commonly-used items at the top level.

Before:

from letta_evals.models import SuiteSpec
from letta_evals.runner import run_suite
from letta_evals.types import GraderKind
from letta_evals.visualization.factory import ProgressStyle

After:

from letta_evals import SuiteSpec, run_suite, GraderKind, ProgressStyle

Changes:

  • Export 37 commonly-used items from letta_evals (config models, types, decorators, grader/target classes, result models, visualization)
  • Add exports to targets/init.py and graders/init.py for better subpackage organization
  • Maintains backwards compatibility - nested imports still work

What stays in subpackages:

  • Specific GraderSpec types (ToolGraderSpec, ModelJudgeGraderSpec, etc.)
  • Built-in extractor/grader functions (use from letta_evals.extractors import ...)

@mattzh72 mattzh72 merged commit 24fd61a into main Oct 23, 2025
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants