llms#

Classes

llms.bedrock.AnthropicTool

llms.bedrock.BedrockBase

Base class for Bedrock models.

llms.bedrock.BedrockLLM

Bedrock models.

llms.bedrock.LLMInputOutputAdapter()

Adapter class to prepare the inputs from Langchain to a format that LLM model expects.

llms.sagemaker_endpoint.ContentHandlerBase()

A handler class to transform input from LLM to a format that SageMaker endpoint expects.

llms.sagemaker_endpoint.LLMContentHandler()

Content handler for LLM class.

llms.sagemaker_endpoint.LineIterator(stream)

A helper class for parsing the byte stream input.

llms.sagemaker_endpoint.SagemakerEndpoint

Sagemaker Inference Endpoint models.

Functions

llms.bedrock.extract_tool_calls(content)

llms.sagemaker_endpoint.enforce_stop_tokens(...)

Cut off the text as soon as any stop words occur.