Slot: demos
Few-shot demonstrations attached to a predictor.
URI: dspy:demos
Applicable Classes
| Name |
Description |
Modifies Slot |
| Predictor |
Module that wraps a Signature + LM and produces a Prediction |
no |
| Predict |
Basic input-to-output predictor (``dspy |
no |
| ChainOfThought |
Predictor that injects a free-form rationale field (``dspy |
no |
| MultiChainComparison |
Generates N chains and selects the best (``dspy |
no |
| ReAct |
Reasoning + Acting agent with tool use (``dspy |
no |
| ReActV2 |
Next-generation ReAct agent (``dspy |
no |
| ProgramOfThought |
Tool-using predictor that emits and executes Python code (``dspy |
no |
| CodeAct |
Code-acting agent (``dspy |
no |
Properties
Type and Range
Cardinality and Requirements
| Property |
Value |
| Multivalued |
Yes |
Schema Source
Mappings
| Mapping Type |
Mapped Value |
| self |
dspy:demos |
| native |
dspy:demos |
LinkML Source
name: demos
description: Few-shot demonstrations attached to a predictor.
from_schema: https://w3id.org/lmodel/dspy
rank: 1000
domain_of:
- Predictor
range: Example
multivalued: true
inlined: true
inlined_as_list: true