Testing LLM workflows, an MCP server and external agents without burning API credits: what works for you? #213867
Discussion TypeGeneral Discussion ContentExhaustive testing stops being possible once a workflow engine talks to LLMs, an MCP server and external agents. I'm building tawjih, a bilingual (English/Arabic) file-based workflow engine with a path language (TO, AND, IF/IF NOT, AMONG, THROUGH, ITERATE) and a stdio MCP server through which an assistant can read the project, propose changes and define or run paths. What it does today: No live model in CI. Over 330 tests run against an in-process stand-in model and a local HTTP server that imitates an OpenAI-compatible provider. What it does not cover yet, and where I'd value your experience: Real model variance. None of this has been measured against live models. How do you keep evaluation suites stable enough for CI: fixed seeds, recorded cassettes (VCR.py, pytest-recording), thresholds instead of exact passes? Repository: https://github.com/AlmodinyMk/LLM-tawjih-Model-building |
Replies: 3 comments 5 replies
|
What has worked for me, going through your three points: Evaluation stability in CI
MCP over multiple turns
Agents that build paths
Hope that helps; happy to dig into any of these if you share a concrete failing case. |
|
One stdio test I'd add: disconnect after a run has been accepted, then see whether a fresh client can pick up the same work. I tried this with Open Agent API v0.0.71. The first bridge's wait timed out while the run was still The useful part for CI was holding the fixture on an explicit signal rather than guessing a sleep duration. That let me force the disconnect exactly while the run was active. I'd assert the ID, run count, handler count and final state across the reconnect; the exact wording from a language model doesn't have to be part of the test. This used a real stdio client and loopback gateway, with no live model calls. I haven't run tawjih itself. |
|
Thanks for posting in the GitHub Community, @AlmodinyMk! You are more likely to get a useful response if you are posting your question in the applicable category, the Discussions category is solely related to conversations around the GitHub product Discussions. This question should be in the |
What has worked for me, going through your three points:
Evaluation stability in CI