Skip to content

feat(evals): configure agent HTTP APIs in the Lens UI - #258

Open
tin-berri wants to merge 1 commit into
mainfrom
litellm_agent_api_setup
Open

tin-berri wants to merge 1 commit into
mainfrom
litellm_agent_api_setup

Conversation

@tin-berri

@tin-berri tin-berri commented Nov 25, 2026 •

Copy link
Copy Markdown
Collaborator

Lens could display saved HTTP-agent contracts but its New eval form could only create code-based evals. Evals > New eval now offers HTTP API setup for request bodies, input/output pointers, immediate responses, polling and optional trace links

The UI saves contract 2 and generates a trusted local connection profile plus a named-run command. URLs and credentials stay in the runner environment. GitHub setup uses eval-name instead of generating a Python task callback. Output-only results show the returned answer directly

Validation

134 focused UI tests, TypeScript checking and the production UI build passed. Created both immediate-response and polling evals through the real UI, read the saved definitions back from the Rust server, and ran them with the native SDK. Both passed 1/1 cases with zero trial errors. Each execution used two real model calls and one ticket-lookup tool call against synthetic ticket data

The recording shows actual UI interaction and the graded result, with the CLI execution wait cut out. Captured at approximately five frames per second. Cost reporting and trace correlation were not exercised. GitHub workflow generation is tested; no remote Actions run was triggered

GitHub CI: worker-ui-contract and slack-agent passed on the current commit. Rust and the two standalone-container checks are still running and are optional under the repository instructions. No Greptile, Veria or Bugbot review has been posted at handoff

QA runbook

  1. Open Evals > New eval, choose a dataset and select HTTP API
  2. For an immediate API, use POST /invoke, HTTP 200, body {"input":"","request_id":""}, input /input, request ID /request_id, and output /output
  3. For a polling API, choose job polling, set the accepted status and job ID pointer, and supply a GET path such as /jobs/{id} plus success/failure states
  4. Keep LLM judge enabled, set trials to 1 and minimum pass rate to 100, then create the eval
  5. Enter the agent origin in the saved eval's setup panel, select authentication, copy the profile into pyproject.toml, and provide the displayed environment variables through the runner's secret manager
  6. Run uv run lens eval --name <saved-eval-name> with a compatible Lens SDK. Open the result in Lens and inspect the returned answer. API setup remains available after runs exist

Local preview: http://127.0.0.1:3119/ui/?tab=evals, while the task's development server is running

Recording

lens-agent-api-setup.mp4

Before and after

Before, the creation form had no agent API configuration

Before: code-only creation

After, the real UI saves the HTTP contract and generates local runner setup

After: saved HTTP API setup

Actual graded agent output

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.

1 participant