continuum-evaluation
Skill84 starsChanged 6 months agoApache-2.0View on GitHub
Evaluate agent quality with the `EvaluatorAgent`, generate golden datasets from a corpus, and run DeepEval/RAGAS metrics over conversations. Invoke when the user asks "test agent quality", "evaluate output", "RAG metrics", "DeepEval", "RAGAS", or "regression-test my agent".
- Installs packages
In this repository49 other files it gives its agents.
- AGENTS.mdAGENTS.md
- .claude/commands/monitoring/agents.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- .cursor/rules/continuum.mdcCursor rule
- AgentDB Advanced FeaturesSkill
- AgentDB Learning PluginsSkill
- AgentDB Memory PatternsSkill
- AgentDB Performance OptimizationSkill
- AgentDB Vector SearchSkill
- browserSkill
- continuum-agentSkill
- continuum-claude-codeSkill
- continuum-codexSkill
- continuum-cursorSkill
- continuum-handoffsSkill
- continuum-llm-providersSkill
- continuum-memorySkill
- continuum-observabilitySkill
- continuum-quickstartSkill
- continuum-recipesSkill
- continuum-streamingSkill
- continuum-temporalSkill
- continuum-testingSkill
- continuum-tools-mcpSkill
- continuum-workflowsSkill
- github-code-reviewSkill
- github-multi-repoSkill
- github-project-managementSkill
- github-release-managementSkill
- github-workflow-automationSkill
- Hooks AutomationSkill
- Pair ProgrammingSkill
- ReasoningBank with AgentDBSkill
- ReasoningBank IntelligenceSkill
- Skill BuilderSkill
- sparc-methodologySkill
- stream-chainSkill
- swarm-advancedSkill
- Swarm OrchestrationSkill
- V3 CLI ModernizationSkill
- V3 Core ImplementationSkill
- V3 DDD ArchitectureSkill
- V3 Deep IntegrationSkill
- V3 MCP OptimizationSkill
- V3 Memory UnificationSkill
- V3 Performance OptimizationSkill
- V3 Security OverhaulSkill
- V3 Swarm CoordinationSkill
- Verification & Quality AssuranceSkill
The file
We split this skill into the rules it gives an agent
5 rules. About 0 are common, 1 is distinctive, and 4 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈1
Distinctive · estimate
This author's own choices. Worth a look.
4
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 70
Use for criterion-based per-case scoring.
- Very specific: line 171
Don't run RAGAS without contexts populated — most RAGAS metrics need the retrieved chunks.
- Very specific: line 173
Don't reuse EvaluatorAgent across hostile production traffic — its outputs are LLM-generated and can be cheap to game.
- Very specific: line 176
Don't compare scores across different judge models / prompts — always pin the evaluator's model and criteria for stable longitudinal …
- Very specific: line 179
Don't forget pip install "shyftlabs-continuum[eval]" (or pip install -e ".[eval]" from a checkout) before importing continuum.evaluation — …
≈ “Common” is an estimate: at least 1 in 5 of the 213,897 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Continuum Evaluation Skill
Continuum ships an evaluation framework under continuum.evaluation.
It's an optional extra — install with:
pip install "shyftlabs-continuum[eval]"
# adds: deepeval >= 1.0.0, ragas >= 0.2.0Authoritative source: src/continuum/evaluation/ in this
repository. There is no dedicated user-facing doc; this skill is the
primary reference.
Imports
from continuum.evaluation import (
EvaluatorAgent, # specialised agent that scores other agents
DeepEvalEvaluator, # DeepEval criterion-based evaluation
RagasEvaluator, # RAGAS metrics for RAG pipelines
LangfuseDatasetClient, # pull/push datasets from Langfuse
EvalCase, EvalResult, EvalStatus, CriterionScore,
)EvaluatorAgent
A specialised BaseAgent that takes another agent's output (plus
optional reference) and produces a structured score.
from continuum.agent import BaseAgent, AgentRunner
from continuum.evaluation import EvaluatorAgent
target_agent = BaseAgent(name="target", instructions="Answer concisely.")
evaluator = EvaluatorAgent(
name="quality-judge",
criteria=[
"Factual accuracy (0-1)",
"Conciseness (0-1)",
"Helpfulness (0-1)",
],
model="gpt-4o-mini",
)
# Evaluate one trace
target_resp = await AgentRunner().run(target_agent, "What is the capital of France?")
score = await evaluator.evaluate(
input="What is the capital of France?",
output=target_resp.content,
reference="Paris is the capital of France.",
)
print(score) # {"factual_accuracy": 1.0, "conciseness": 0.9, "helpfulness": 0.8}DeepEval
Use for criterion-based per-case scoring; great for unit-test-style agent regression suites.
from continuum.evaluation import DeepEvalEvaluator
from deepeval.metrics import AnswerRelevancyMetric, FaithfulnessMetric
evaluator = DeepEvalEvaluator(
metrics=[
AnswerRelevancyMetric(threshold=0.7),
FaithfulnessMetric(threshold=0.8),
],
)
results = await evaluator.evaluate_batch([
{"input": "...", "output": "...", "expected_output": "...", "context": ["..."]},
# …
])
for r in results:
print(r.metric_name, r.score, r.success, r.reason)RAGAS
For RAG-specific metrics (faithfulness, context precision/recall, answer correctness, etc.).
from continuum.evaluation import RagasEvaluator
from ragas.metrics import faithfulness, answer_relevancy, context_precision
evaluator = RagasEvaluator(
metrics=[faithfulness, answer_relevancy, context_precision],
)
dataset = [
{
"question": "What is the capital of France?",
"answer": agent_output,
"contexts": retrieved_docs, # the chunks fed into the prompt
"ground_truth": "Paris",
},
]
report = await evaluator.evaluate(dataset)Build a dataset
These are scripts, not library functions — they read a corpus out of
Postgres, call an LLM, and write EvalCase JSON to disk:
python -m continuum.evaluation.build_golden_dataset \
--output golden_cases.json [--run-eval]
python -m continuum.evaluation.generate_eval_dataset \
--samples 50 --output generated_cases.json [--run-eval]
# re-score an existing file without regenerating it
python -m continuum.evaluation.build_golden_dataset --eval-only golden_cases.json--run-eval runs RAGAS and DeepEval over the cases immediately after
generating them. Both write a JSON list of EvalCase (see
continuum.evaluation.types), which is what DeepEvalEvaluator and
RagasEvaluator consume.
For datasets you already keep in Langfuse, use LangfuseDatasetClient.
Putting it together
async def regression_check(agent, dataset, threshold=0.7):
runner = AgentRunner()
evaluator = DeepEvalEvaluator(metrics=[AnswerRelevancyMetric(threshold=threshold)])
cases = []
for sample in dataset:
resp = await runner.run(agent, sample["input"])
cases.append({
"input": sample["input"],
"output": resp.content,
"expected_output": sample.get("expected_output"),
})
results = await evaluator.evaluate_batch(cases)
failures = [r for r in results if not r.success]
return failuresWire this into CI to catch regressions before they ship.
Don't
- Don't run RAGAS without
contextspopulated — most RAGAS metrics need the retrieved chunks. - Don't reuse
EvaluatorAgentacross hostile production traffic — its outputs are LLM-generated and can be cheap to game; treat scores as signals, not gates. - Don't compare scores across different judge models / prompts —
always pin the evaluator's
modelandcriteriafor stable longitudinal comparisons. - Don't forget
pip install "shyftlabs-continuum[eval]"(orpip install -e ".[eval]"from a checkout) before importingcontinuum.evaluation— the eval module's third-party deps are an optional extra.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

