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