Loading...
Loading...
Evaluates and optimizes agent skills using a DSPy-powered GEPA (Generate/Evaluate/Propose/Apply) loop. Loads scenario YAML files as DSPy datasets, scores outputs with pattern-matching metrics, and optimizes prompts via BootstrapFewShot or MIPROv2 teleprompters. Also generates new scenario YAML files from skill descriptions.
npx skill4agent add qredence/skills dspy-gepadspypyyamljsonschemapip install dspy-ai pyyaml jsonschemapython scripts/gepa.py generate \
--skill-description "Creates FastAPI routers with CRUD endpoints" \
--skill-name fastapi-router-py \
--num-scenarios 5 \
--output tests/scenarios/fastapi-router-py/generated.yamlpython scripts/gepa.py generate \
--scenarios tests/scenarios/fastapi-router-py/scenarios.yaml \
--num-scenarios 3 \
--output new-scenarios.yamlpython scripts/gepa_evaluate.py \
--scenarios tests/scenarios/fastapi-router-py/scenarios.yamlpython scripts/gepa.py optimize \
--scenarios tests/scenarios/fastapi-router-py/scenarios.yaml \
--output optimized_program.jsonpython scripts/scenario_to_dataset.py \
--scenarios tests/scenarios/fastapi-router-py/scenarios.yaml \
--output dataset.jsonreferences/gepa-architecture.mdreferences/metrics.mdexamples/sample-run.md