dspy-adapters-multimodal
Installation
SKILL.md
DSPy Adapters and Multimodal I/O
Goal
Choose an adapter deliberately and model image, audio, and file inputs with DSPy's typed primitives.
Adapter Selection
| Adapter | Use it for |
|---|---|
dspy.ChatAdapter() |
Default, human-readable field markers, broad model compatibility |
dspy.JSONAdapter() |
Structured JSON output and native function calling where supported |
dspy.XMLAdapter() |
XML-tagged fields when XML is easier for the target LM to follow |
dspy.TwoStepAdapter() |
A separate extraction pass when parsing needs extra help |
Configure globally or for a limited scope:
import dspy