Generative AI · Planned
Tool-using LLM agent with tracing and guardrails
An LLM agent that completes real tasks by calling APIs and querying a database, with tracing, guardrails, and a task-success benchmark.
Planned project. This page describes the goal, the approach, and how the system will be evaluated. Code, a live demo, and results will be published here once it is built.
Goal
Build an agent that does useful work, such as answering questions from a database or triaging GitHub issues, and measure how often it actually completes the task. The focus is on reliability: what happens when a tool fails, returns nothing, or the model picks the wrong tool.
Planned approach
- Tools. A small set of well-described tools with typed inputs and outputs validated by Pydantic, such as a read-only database query tool and an issue-labelling tool.
- Agent loop. The model plans, calls tools, and reads results, with a step limit and a clear stop condition.
- Guardrails. Read-only database access, input validation on every tool call, and a confirmation step before any action that changes data.
- Tracing. Every run is traced with Langfuse, so each tool call, its inputs, and its result can be inspected.
Evaluation plan
- A fixed task set with known correct outcomes.
- Task success rate, the number of steps per task, and cost per task.
- Failure handling: tests that make tools time out, return errors, or return empty results, to check that the agent recovers or stops cleanly.
Definition of done
A public repository, a demo, a results table of task success rates, and a write-up of the failure cases found during evaluation.