Reference for evaluate(…): dataset, runner, scorers, and every option.
An eval file calls evaluate(...), then you run it:
promptlayer eval run path/to/your.eval.py
Use evaluate for sync runners and aevaluate (Python) for async runners; JavaScript always uses async evaluate. For full harness setups (OpenAI Agents, Claude, LangChain, and more), see the Quickstart.
The runner is any callable that takes an input and returns a final value (not a stream) — no framework allowlist.For Trajectory, tools must appear as Tool: <name> spans on the imported Trace; use a framework helper or traceTool. The runner and tool-span rules live on Runner.
On success, the SDK creates (or reuses) a Table, writes a dedicated experiment sheet, configures your scorecard, and returns an EvalResult with a dashboard URL. For failure handling and passing_score, see Results and failures.
Was this page helpful?
Assistant
Responses are generated using AI and may contain mistakes.