MockAgent
A web gateway tool based on the mock gateway concept. It packages JSON Schema validation capabilities for LangChain agent tool calls, simplifying the configuration of tool call validation workflows for teams during the development phase.
Timeline (last 90 days)
MockAgent essentially brings the concept of contract testing into the field of agent development, automatically enforcing consumer-side contract validation on every tool call.
During the development phase, MockAgent sits as a gateway between the LangChain agent and external services, intercepting and handling all tool calls.
Developers only need to provide the expected JSON Schema to configure a mock endpoint within seconds.
When an LLM passes an invalid payload, MockAgent returns a structured 400 error with a clear validation error path (e.g., Expected int at root.amount, got string).
MockAgent's accompanying visual dashboard tracks metrics such as tool call history, schema violation rate, and latency.
MockAgent is built on Next.js 14 and Supabase and is currently completely free to test.
MockAgent is a lightweight tool mock and schema validation gateway for LangChain agents.
MockAgent is an open-source project that the author introduced on Reddit.
MockAgent enables developers to validate agent behavioral logic through tool mocking without actually calling external services.
Acting as a gateway, MockAgent performs schema validation on tool inputs and outputs before calls actually occur, intercepting non-compliant requests in advance.
2 more timeline events
All Facts (12)
MockAgent is a lightweight tool mock and schema validation gateway for LangChain agents.
60%UnverifiedMockAgent is an open-source project that the author introduced on Reddit.
60%UnverifiedMockAgent essentially brings the concept of contract testing into the field of agent development, automatically enforcing consumer-side contract validation on every tool call.
50%UnverifiedDevelopers only need to provide the expected JSON Schema to configure a mock endpoint within seconds.
50%UnverifiedWhen an LLM passes an invalid payload, MockAgent returns a structured 400 error with a clear validation error path (e.g., Expected int at root.amount, got string).
50%UnverifiedMockAgent's accompanying visual dashboard tracks metrics such as tool call history, schema violation rate, and latency.
50%UnverifiedMockAgent is built on Next.js 14 and Supabase and is currently completely free to test.
50%UnverifiedDuring the development phase, MockAgent sits as a gateway between the LangChain agent and external services, intercepting and handling all tool calls.
50%UnverifiedMockAgent enables developers to validate agent behavioral logic through tool mocking without actually calling external services.
50%UnverifiedActing as a gateway, MockAgent performs schema validation on tool inputs and outputs before calls actually occur, intercepting non-compliant requests in advance.
50%UnverifiedThe mock gateway uses the AJV Schema validator to check the payload before real code executes; if validation passes it returns a clean mock JSON response, and if it fails it returns a structured 400 error that explicitly identifies type mismatches.
50%UnverifiedThe author packaged this setup into a web gateway tool called MockAgent, allowing teams to mock endpoints and visually trace agent trajectory errors without hand-writing an Express server.
50%