Skip to main content
Ctrl+K
🦜🔗 LangChain  documentation - Home 🦜🔗 LangChain  documentation - Home
  • Reference
  • Legacy reference
Ctrl+K
Docs
  • GitHub
  • X / Twitter
Ctrl+K
  • Reference
  • Legacy reference
Docs
  • GitHub
  • X / Twitter

Section Navigation

Base packages

  • Core
  • Langchain
  • Text Splitters
  • Community
  • Experimental

Integrations

  • AI21
  • Airbyte
  • Anthropic
  • AstraDB
  • AWS
  • Azure Dynamic Sessions
  • Box
  • Chroma
  • Cohere
  • Couchbase
  • Elasticsearch
  • Exa
  • Fireworks
  • Google Community
  • Google GenAI
  • Google VertexAI
  • Groq
  • Huggingface
  • Milvus
  • MistralAI
  • MongoDB
  • Nomic
  • Nvidia Ai Endpoints
  • Ollama
  • OpenAI
  • Pinecone
  • Postgres
  • Prompty
    • core
    • langchain
    • parsers
      • PromptyChatParser
      • RoleMap
    • renderers
    • utils
  • Qdrant
  • Robocorp
  • Together
  • Unstructured
  • VoyageAI
  • Weaviate
  • LangChain Python API Reference
  • parsers
  • RoleMap

RoleMap#

class langchain_prompty.parsers.RoleMap[source]#

Attributes

ROLES

Methods

__init__()

get_message_class(role)

__init__()#
classmethod get_message_class(role: str) → Type[BaseMessage][source]#
Parameters:

role (str) –

Return type:

Type[BaseMessage]

On this page
  • RoleMap
    • __init__()
    • get_message_class()

© Copyright 2023, LangChain Inc.