Skip to main content

EvaluationResultsClient

adaline.prompts.evaluations.results returns per-row evaluation results as they become available, with optional grade and score filters. Because rows appear incrementally while an evaluation runs, you can poll this client to surface partial progress. Every method is async. For long-running evaluations, prefer adaline.init_evaluation_results() — it wraps this client in a self-refreshing cache.

Access

from adaline.main import Adaline

adaline = Adaline()
results = adaline.prompts.evaluations.results  # EvaluationResultsClient
The class is also exported directly:
from adaline.clients import EvaluationResultsClient
Types from adaline_api:
from adaline_api.models.list_evaluation_results_response import ListEvaluationResultsResponse

list()

Fetch a page of evaluation results. Rows are returned as they become available, so you can poll this while an evaluation is still running.
async def list(
    *,
    prompt_id: str,
    evaluation_id: str,
    grade: Optional[str] = None,
    expand: Optional[str] = None,
    sort: Optional[str] = None,
    limit: Optional[int] = None,
    cursor: Optional[str] = None,
) -> ListEvaluationResultsResponse

Parameters

NameTypeRequiredDescription
prompt_idstrYesPrompt the evaluation belongs to.
evaluation_idstrYesEvaluation to inspect.
gradeOptional[str]No"pass", "fail", or "unknown".
expandOptional[str]No"row" to include the underlying dataset row inline.
sortOptional[str]No"createdAt:asc", "createdAt:desc", "score:asc", or "score:desc".
limitOptional[int]NoPage size.
cursorOptional[str]NoCursor from a previous response.
See EvaluationResultsQuery for the full shape.

Returns

ListEvaluationResultsResponse with { data: list[EvaluationResult]; pagination: Pagination }.

Example

response = await adaline.prompts.evaluations.results.list(
    prompt_id="prompt_abc123",
    evaluation_id="eval_abc123",
    grade="fail",
    expand="row",
    sort="score:desc",
    limit=50,
)

for result in response.data:
    print(f"grade={result.grade} score={result.score}")

See Also