r/LangChain • u/Extension_Pitch9081 • 22h ago
Discussion Discussion on how to build an issue in my project
I'm building something for my project. I would like to hear your opinion on how to approach this issue.
Copied from the issue:
Problem
To start using Verilays today, you add a decorator to every tool. That's a small change, but it's still a code change. Many teams can't do it on day one (another team owns the code, a review process, or they just want to try it first). That's the biggest barrier to trying Verilays.
Most of the information Verilays needs is already in the traces: the tool name, the arguments it was called with, and what it returned (e.g. the id of the written record).
Proposal
A mode where Verilays reads tool calls from existing Langfuse traces instead of from a decorator, and runs the same checks:
The worker pulls tool observations from the Langfuse API by name (e.g. every book_room call).
A small config maps each tool to its check:
tools:
book_room:
system: postgres
table: bookings
lookup_field: id # taken from the tool's output
fields_to_compare: [room, start_time] # taken from the tool's input
deadline: 1m
It reads the record back (read-only), compares, and writes the verilays score back onto the same trace, exactly as today.
Bonus, backfill: run it over past traces (e.g. the last 7 days) and get a first report in minutes: "3% of book_room writes never landed". The first caught failure shows up in a tool the team already uses, without touching their code.
The decorator stays the recommended path for production (instant, exact). Trace mode is the way to start.
What do you think?
Im just starting work on it and I said Why not talk with people before
I'll attach the issue as well if someone wants to take a deeper look.
Thanks!