Toggle Menu
Prev Up Next

# `langchain_experimental.autonomous_agents.hugginggpt.repsonse_generator`.ResponseGenerator

class langchain_experimental.autonomous_agents.hugginggpt.repsonse_generator.ResponseGenerator(llm_chain: LLMChain, stop: Optional[List] = None)

  Generates a response based on the input.

  Methods

  `__init__`(llm_chain[, stop]) |
  `generate`(inputs[, callbacks]) | Given input, decided what to do.

  Parameters

    - llm_chain (LLMChain) –

    - stop (Optional[List]) –

  __init__(llm_chain: LLMChain, stop: Optional[List] = None)
    Parameters

      - llm_chain (LLMChain) –

      - stop (Optional[List]) –

  generate(inputs: dict, callbacks: Optional[Union[List[BaseCallbackHandler], BaseCallbackManager]] = None, **kwargs: Any) → str

    Given input, decided what to do.

    Parameters

      - inputs (dict) –

      - callbacks (Optional[Union[List[BaseCallbackHandler], BaseCallbackManager]]) –

      - kwargs (Any) –

    Return type

      str