feat: Add agent-test-generation skill#26
Open
hocokahu wants to merge 1 commit into
Open
Conversation
Scaffold monocle_test_tools pytest tests for Python AI agent apps (LangGraph, Google ADK, CrewAI, LlamaIndex, Strands). Covers seven test categories: routing, input/output validation, performance, multi-agent orchestration, individual-agent isolation, and quality assessment. Quality assessment is dual-mode: deterministic + optional BERTScore similarity locally (no API key, no LLM call); LLM-as-judge classification via Okahu cloud when OKAHU_API_KEY is set.
3caa53b to
abd8f01
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
@zachbai I thought it would be useful to add a skill to generate test cases against all agentic coding. Let me know your thought. Monocle2AI is an open source under the Linux Foundation.
Summary
Adds
agent-test-generation— a skill that scaffoldsmonocle_test_toolspytest tests for Python AI agent apps across LangGraph, Google ADK, OpenAI, Microsoft Agent Framework, CrewAI, LlamaIndex, and Strands.Covers seven test categories:
Dual-mode quality assessment
The quality file works with or without a cloud key:
contains_output/does_not_have_any_outputassertions plus optional BERTScore semantic similarity (auto-skips ifbert_scoreisn't pip-installed). No network, no LLM call.OKAHU_API_KEYset) — LLM-as-judge classification via Okahu (sentiment, toxicity, bias, hallucination, etc.). Tests are gated bypytest.mark.skipifso they skip cleanly when the key is absent. The Cloud eval is provided at no cost.