Create and manage custom API Performance eval definitions from the Lightsage CLI.
Custom eval definitions are higher-level tasks Lightsage should test with coding agents. Use them for workflows that span multiple operations, such as installing an SDK, authenticating, and sending a first request.Use Custom eval runs to execute these definitions and inspect active or completed runs.
lightsage api-performance custom-eval-definitions create \ --prompt "Install the SDK and crawl https://example.com" \ --category-name "Getting started" \ --description "Measures whether an agent can complete the first SDK request."
Configure the generated eval at creation time:
lightsage api-performance custom-eval-definitions create \ --prompt "Install the SDK and crawl https://example.com" \ --description "The agent should complete the first working request." \ --eval '{"docs_mode":"include","include_env_vars":true,"mcp_enabled":false}'
Use a prompt template when Lightsage should render the prompt for a specific company. Templates support {{company_name}} and {{company_domain}}.
lightsage api-performance custom-eval-definitions create \ --body '{"prompt":"Build an integration for Example API.","prompt_template":"Build an integration for {{company_name}} using docs from {{company_domain}}.","category_name":"Getting started"}'
lightsage api-performance custom-eval-definitions update \ --custom-eval-id custom_eval_123 \ --description '"Covers SDK install, authentication, and first crawl request."'
Update the attached eval definition:
lightsage api-performance custom-eval-definitions update \ --custom-eval-id custom_eval_123 \ --eval '{"expected_behavior":"The agent installs the SDK, authenticates, and prints the crawl result."}'
Updateable fields:
Flag
Description
--prompt
Task prompt.
--prompt-template
Optional prompt template. Supports {{company_name}} and {{company_domain}}.
--category-name
Category label for organizing custom evals.
--description
Expected task outcome.
--competitor
Competitor ID for competitor-specific eval variants.