Skip to main content

Reports in LiteLLM Lens

Ask a question about your agents and get a report grounded in their traces

You might want to understand where a coding agent loses time, why support conversations stay unresolved, or which tool errors deserve attention first. With Reports in LiteLLM Lens, you choose the question, the traces to examine, and an analysis budget. You get findings you can inspect, with recommendations tied to the sessions that support them

Start with the question you need answered​

Open Reports and choose a template or Write your own question. Each template includes a question and instructions about what to investigate. Edit both to fit your team

The coding templates look for work you could remove or turn into a shared tool: repeated environment setup, failed test commands, and the same repository exploration across sessions. The support templates examine resolution quality and knowledge gaps. Other templates investigate tool reliability and usage boundaries

Your question can go beyond those starting points. Ask whether agents follow a new escalation rule, which tasks require repeated corrections, or where a retrieval tool returns information the agent cannot use. Add context in What to look for, including the outcome you care about and the evidence that would establish it

For example, “Where am I wasting the most time?” is a useful starting question for coding agents. The instructions can make it more precise:

Look for repeated setup and failed commands. Check whether the same work was necessary in other sessions. Recommend a specific change to our tools or repository guidance, and explain how to test it without weakening the existing checks

Choose a template for coding, support, or tool-using agents

Choose the scope and budget​

Set an analysis spending limit, then choose an agent or a group of agents and a time range. Use trace metadata or a saved signal to narrow the review. You can also set a maximum number of traces for a smaller investigation

The budget covers the analysis that creates the report. It is separate from the spend recorded in the traces you are reviewing. A trace limit bounds how many sessions enter the review; it does not determine how much useful evidence they contain

Check the matching trace count before you start. For a question about a specific workflow, include enough successful sessions to compare with the failures. A report on repeated test setup needs to distinguish avoidable work from tasks that require a fresh environment

Choose Generate report to start. You can follow the analysis and return to the report from the Reports page

Read the changes first, then inspect the evidence​

The report starts with recommended changes. Each finding explains what happened, links to supporting traces, and gives you a way to test the proposed change

In the coding walkthrough, the agent keeps preparing a local test proxy across unrelated tasks. The first recommendation is to keep the test environment running between tasks. Each task connects to the existing local proxy after a health check and keeps its test data separate

That gives an engineer a concrete experiment. Run the same integration-test tasks with proxy reuse, keep the same assertions, and compare setup time and model spend. The observed time spent on setup is evidence to investigate. It does not establish how much the change will save

Coding report with clear changes to the test environment, test commands, and log output

A support report can lead to a different edit. In the walkthrough, the agent resends an agreement after the delivery tool reports a bounce. The recommendation is to ask the customer for the correct recipient email after a bounce, update the address, and then send again. The test includes both bounced messages and successful deliveries, so the new check does not block a valid reminder

Support report recommending a corrected email address after a bounce and a new link when the signing link expires

These walkthroughs use fictional sessions to show the report format. They are not measurements from a customer deployment

Keep the report with the work​

Completed reports stay in Reports, with Generate report available for the next question. Open a citation to inspect the original trace, copy the report link for someone with access, or download the report as Markdown

After you change an agent's instructions or tools, use Run again to set up another review. Choose the new time window and check the evidence before deciding whether to keep the change. A report can identify a useful next step even when the available traces do not support a savings estimate or a definitive explanation

Follow the Reports guide to set up your first report