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
- 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:
inputs (dict) β
callbacks (List[BaseCallbackHandler] | BaseCallbackManager | None) β
kwargs (Any) β
- Return type:
str