How furudo-erika/ai-testing-agent works
This is an LLM-assisted API testing agent. The user asks the LangChain agent to plan tests, generate code, run it, or refine it with feedback; the agent’s tools invoke the CLI, which calls OpenRouter and writes or runs generated tests against a configurable API. The README documents this workflow; the excerpts additionally show a one-time reflection retry and a sample FastAPI target. The copied files are alternate snapshots, so they are not mapped separately.
Main entry points: api_tester.py Test CLI · agent.py Chat agent · agent_tools.py Agent tools · generated_tests.py Generated tests
Components 13
Agent interaction
- Chat agent
agent.py - Safe-run retry
agent.py - Agent tools
agent_tools.py
Test workflow
- Test CLI
api_tester.py - Plan generation
api_tester.py - Test generation
api_tester.py - Feedback refinement
api_tester.py - Test runner
api_tester.py
Generation and execution
- Generated tests
generated_tests.py
Test target
- Sample FastAPI
main.py
Other components
- User
- OpenRouter LLM
- pytest
Connections 16
- User → Chat agent: requests action
README.md - Chat agent → Agent tools: dispatches tools
agent.py - Chat agent → Safe-run retry: offers retry
agent.py - Safe-run retry → Agent tools: calls tools
agent.py - Agent tools → Test CLI: runs commands
agent_tools.py - Test CLI → Plan generation: dispatches plan
api_tester.py - Test CLI → Test generation: dispatches generate
api_tester.py - Test CLI → Feedback refinement: dispatches feedback
api_tester.py - Test CLI → Test runner: dispatches run
api_tester.py - Plan generation → OpenRouter LLM: requests plan
api_tester.py - Test generation → OpenRouter LLM: requests code
api_tester.py - Feedback refinement → OpenRouter LLM: requests revision
api_tester.py - Test generation → Generated tests: writes tests
api_tester.py - Test runner → pytest: runs tests
api_tester.py - pytest → Generated tests: executes file
- Generated tests → Sample FastAPI: sends API requests
README.md