Toggle Menu
Prev Up Next

# `langchain_community.llms.amazon_api_gateway`.ContentHandlerAmazonAPIGateway

class langchain_community.llms.amazon_api_gateway.ContentHandlerAmazonAPIGateway

  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]
    Parameters

      - prompt (str) –

      - model_kwargs (Dict[str, Any]) –

    Return type

      Dict[str, Any]

  classmethod transform_output(response: Any) → str
    Parameters

      response (Any) –

    Return type

      str