ContentHandlerAmazonAPIGateway#

class langchain_community.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

transform_input(prompt,Β model_kwargs)

transform_output(response)

classmethod transform_input(prompt: str, model_kwargs: Dict[str, Any]) β†’ Dict[str, Any][source]#
Parameters:
  • prompt (str)

  • model_kwargs (Dict[str, Any])

Return type:

Dict[str, Any]

classmethod transform_output(response: Any) β†’ str[source]#
Parameters:

response (Any)

Return type:

str