def response(self):
        """message to be stored in memory and shared with next prompt"""
        if self.model_response and not self.tool_output:
            # share the model response or log message as output if tool fails to call
            return self.model_response
        return (
            f"Outputs from using tool '{self.tool}' for inputs {self.tool_input} "
            f"is '{self.tool_output}'\n"
        )
message to be stored in memory and shared with next prompt
autochain/agent/structs.py