Subset: LmContract
Typed LM request/response contract (LMRequest, LMMessage, LM parts).
URI: LmContract
Identifier and Mapping Information
Schema Source
- from schema: https://w3id.org/lmodel/dspy
Classes in subset
| Class | Description |
|---|---|
| LMAudioPart | Audio content part |
| LMBinaryPart | Opaque binary content part |
| LMCacheConfig | DSPy memoization cache controls |
| LMCitationPart | Citation returned by a model |
| LMConfig | Common generation controls for an LM request (``dspy |
| LMDocumentPart | Semantic source/document content, optionally citation-enabled |
| LMHistoryEntry | A single LM call recorded in the per-LM / per-module history |
| LMImagePart | Image content part |
| LMMessage | Role-attributed sequence of LM parts (``dspy |
| LMOutput | One generated candidate inside an LMResponse |
| LMPart | Abstract base for a single content item carried by an LM message or output |
| LMPromptCacheConfig | Provider-side prompt/token cache controls (call still happens; backend may re... |
| LMReasoningConfig | Reasoning controls for models with native reasoning support |
| LMRefusalPart | Model refusal part |
| LMRequest | Normalized request handed to a BaseLM (``dspy |
| LMResponse | Normalized result of one LM request (``dspy |
| LMSourcePart | LM part whose content comes from exactly one of data, url, file_id, or path |
| LMTextPart | Plain text part of an LM message or output |
| LMThinkingPart | Reasoning / thinking trace returned by a model |
| LMToolCallPart | Model-issued request to call a tool (LMToolCallPart) |
| LMToolChoice | Tool-choice controls for native tool-capable models |
| LMToolResultPart | Tool execution result returned to a model (LMToolResultPart) |
| LMToolSpec | Provider-independent tool schema attached to an LMRequest |
| LMUsage | Token and timing usage for one LM request (``dspy |
| LMVideoPart | Video content part |
| ToolCall | A model request to invoke a tool (``dspy |
| ToolResult | A tool execution result returned to the model (``dspy |