ResponseGenerator#

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

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 (List | None) –

__init__(llm_chain: LLMChain, stop: List | None = None)[source]#
Parameters:
  • llm_chain (LLMChain) –

  • stop (List | None) –

generate(inputs: dict, callbacks: List[BaseCallbackHandler] | BaseCallbackManager | None = None, **kwargs: Any) β†’ str[source]#

Given input, decided what to do.

Parameters:
Return type:

str