Skip to content

Enum: AdapterKind

Adapter implementation used to format prompts / parse responses.

URI: dspy:AdapterKind

Permissible Values

Value Meaning Description
chat None ChatAdapter (Markdown-formatted field blocks)
json None JSONAdapter (structured JSON outputs)
xml None XMLAdapter (XML-formatted output)
baml None BAMLAdapter (BAML schema-language outputs)
two_step None TwoStepAdapter (two-pass plan + finalize)

Identifier and Mapping Information

Schema Source

LinkML Source

name: AdapterKind
description: Adapter implementation used to format prompts / parse responses.
from_schema: https://w3id.org/lmodel/dspy
exact_mappings:
- nexus:AdapterType
close_mappings:
- mellea:AdapterTypeEnum
rank: 1000
permissible_values:
  chat:
    text: chat
    description: ChatAdapter (Markdown-formatted field blocks).
  json:
    text: json
    description: JSONAdapter (structured JSON outputs).
  xml:
    text: xml
    description: XMLAdapter (XML-formatted output).
  baml:
    text: baml
    description: BAMLAdapter (BAML schema-language outputs).
  two_step:
    text: two_step
    description: TwoStepAdapter (two-pass plan + finalize).