Loading...
Loading...
Core DSPy framework guidance — signatures, modules, programs, compilation, and testing. Use when creating DSPy signatures, building modules, compiling programs, or learning DSPy fundamentals.
npx skill4agent add qredence/skills dspy-coreuvuv# Create and activate a uv virtual environment
uv venv
source .venv/bin/activate
# Install dspy
uv pip install dspyRule: Never use raworpip. Always usepython -m pipfor package installation anduv pipfor script execution.uv run
import dspy
class MySignature(dspy.Signature):
"""Input and output fields with descriptions."""
input_field = dspy.InputField(desc="Description of input")
output_field = dspy.OutputField(desc="Description of output")# Use the compile-dspy script for safe compilation
uv run scripts/compile-dspy.py --module my_module --teleprompter teleprompter_nameassets/templates/uvuv venvuv pipuv runclear-cache.py