Tag
一个实验性想法 Heisentools:让 agent 从真实观察到的工具调用中重写 mock.py,从而模拟任意服务,用于测试 agent 而避免速率限制、上下文漂移和污染数据库。已在真实 Slack 消息上验证。
Aimock is an open-source library for mocking AI components like LLMs, tools, agents, and databases, enabling end-to-end testing without real implementations. It has achieved 1 million weekly installs, indicating its utility in the AI development community.
A blog post presenting a universal approach to mocking in testing by using continuations to capture effects, allowing tests to verify correct arguments and order of calls without performing the effects. The technique is demonstrated in the Gleam programming language.
A tutorial covering various strategies for mocking network calls in Rust, using the example of a Kubernetes controller that emits events, with emphasis on not degrading production code for testability.