Skip to content

Enum: LMRole

Role of an LM message (used by both legacy chat dicts and LMMessage).

URI: dspy:LMRole

Permissible Values

Value Meaning Description
system None System / instruction role
developer None Developer role (OpenAI gpt-4o family)
user None End-user role
assistant None Model / assistant role
tool None Tool result role (legacy chat dict shape)

Slots

Name Description
role Conversational role of a message

Identifier and Mapping Information

Schema Source

LinkML Source

name: LMRole
description: Role of an LM message (used by both legacy chat dicts and LMMessage).
from_schema: https://w3id.org/lmodel/dspy
close_mappings:
- mcp:Role
rank: 1000
permissible_values:
  system:
    text: system
    description: System / instruction role.
  developer:
    text: developer
    description: Developer role (OpenAI gpt-4o family).
  user:
    text: user
    description: End-user role.
  assistant:
    text: assistant
    description: Model / assistant role.
  tool:
    text: tool
    description: Tool result role (legacy chat dict shape).