langchain.chat_models.bedrock.ChatPromptAdapter¶
class langchain.chat_models.bedrock.ChatPromptAdapter[source]¶
Adapter class to prepare the inputs from Langchain to prompt format
that Chat model expects.
Methods
__init__()
convert_messages_to_prompt(provider, messages)
__init__()¶
classmethod convert_messages_to_prompt(provider: str, messages: List[BaseMessage]) → str[source]¶