chat_models#

Classes

chat_models.bedrock.ChatBedrock

A chat model that uses the Bedrock API.

chat_models.bedrock.ChatPromptAdapter()

Adapter class to prepare the inputs from Langchain to prompt format that Chat model expects.

chat_models.bedrock_converse.ChatBedrockConverse

Bedrock chat model integration built on the Bedrock converse API.

Functions

chat_models.bedrock.convert_messages_to_prompt_anthropic(...)

Format a list of messages into a full prompt for the Anthropic model

chat_models.bedrock.convert_messages_to_prompt_llama(...)

Convert a list of messages to a prompt for llama.

chat_models.bedrock.convert_messages_to_prompt_llama3(...)

Convert a list of messages to a prompt for llama.

chat_models.bedrock.convert_messages_to_prompt_mistral(...)

Convert a list of messages to a prompt for mistral.