langchain.llms.amazon_api_gateway.ContentHandlerAmazonAPIGateway¶
class langchain.llms.amazon_api_gateway.ContentHandlerAmazonAPIGateway[source]¶
Adapter to prepare the inputs from Langchain to a format
that LLM model expects.
It also provides helper function to extract
the generated text from the model response.
Methods
__init__()
transform_input(prompt, model_kwargs)
transform_output(response)
__init__()¶
classmethod transform_input(prompt: str, model_kwargs: Dict[str, Any]) → Dict[str, Any][source]¶
classmethod transform_output(response: Any) → str[source]¶