langchain_experimental.autonomous_agents.hugginggpt.repsonse_generator
.ResponseGenerator¶
- class langchain_experimental.autonomous_agents.hugginggpt.repsonse_generator.ResponseGenerator(llm_chain: LLMChain, stop: Optional[List] = 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 (Optional[List]) –
- __init__(llm_chain: LLMChain, stop: Optional[List] = None)[source]¶
- Parameters
llm_chain (LLMChain) –
stop (Optional[List]) –
- generate(inputs: dict, callbacks: Optional[Union[List[BaseCallbackHandler], BaseCallbackManager]] = None, **kwargs: Any) str [source]¶
Given input, decided what to do.
- Parameters
inputs (dict) –
callbacks (Optional[Union[List[BaseCallbackHandler], BaseCallbackManager]]) –
kwargs (Any) –
- Return type
str